ServiceLevelObjective.fromJson constructor

ServiceLevelObjective.fromJson(
  1. Map json_
)

Implementation

ServiceLevelObjective.fromJson(core.Map json_)
  : this(
      calendarPeriod: json_['calendarPeriod'] as core.String?,
      displayName: json_['displayName'] as core.String?,
      goal: (json_['goal'] as core.num?)?.toDouble(),
      name: json_['name'] as core.String?,
      rollingPeriod: json_['rollingPeriod'] as core.String?,
      serviceLevelIndicator:
          json_.containsKey('serviceLevelIndicator')
              ? ServiceLevelIndicator.fromJson(
                json_['serviceLevelIndicator']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      userLabels: (json_['userLabels']
              as core.Map<core.String, core.dynamic>?)
          ?.map((key, value) => core.MapEntry(key, value as core.String)),
    );