ScalingActivity.fromJson constructor
ScalingActivity.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ScalingActivity.fromJson(Map<String, dynamic> json) {
return ScalingActivity(
activityId: json['ActivityId'] as String,
cause: json['Cause'] as String,
description: json['Description'] as String,
resourceId: json['ResourceId'] as String,
scalableDimension:
(json['ScalableDimension'] as String).toScalableDimension(),
serviceNamespace:
(json['ServiceNamespace'] as String).toServiceNamespace(),
startTime: nonNullableTimeStampFromJson(json['StartTime'] as Object),
statusCode: (json['StatusCode'] as String).toScalingActivityStatusCode(),
details: json['Details'] as String?,
endTime: timeStampFromJson(json['EndTime']),
statusMessage: json['StatusMessage'] as String?,
);
}