ScalingPlan.fromJson constructor
ScalingPlan.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ScalingPlan.fromJson(Map<String, dynamic> json) {
return ScalingPlan(
applicationSource: ApplicationSource.fromJson(
json['ApplicationSource'] as Map<String, dynamic>),
scalingInstructions: (json['ScalingInstructions'] as List)
.whereNotNull()
.map((e) => ScalingInstruction.fromJson(e as Map<String, dynamic>))
.toList(),
scalingPlanName: json['ScalingPlanName'] as String,
scalingPlanVersion: json['ScalingPlanVersion'] as int,
statusCode: (json['StatusCode'] as String).toScalingPlanStatusCode(),
creationTime: timeStampFromJson(json['CreationTime']),
statusMessage: json['StatusMessage'] as String?,
statusStartTime: timeStampFromJson(json['StatusStartTime']),
);
}