GetServiceLevelObjectiveResult.fromMap constructor
GetServiceLevelObjectiveResult.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GetServiceLevelObjectiveResult.fromMap(Map<String, dynamic> map) {
return GetServiceLevelObjectiveResult(
calendarPeriod: map['calendarPeriod'] as String,
displayName: map['displayName'] as String,
goal: map['goal'] as double,
name: map['name'] as String,
rollingPeriod: map['rollingPeriod'] as String,
serviceLevelIndicator: ServiceLevelIndicatorResponse.fromMap((map['serviceLevelIndicator']! as Map).cast<String, dynamic>()),
userLabels: (map['userLabels'] as Map).cast<String, String>(),
);
}