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