ScalableTarget.fromJson constructor
ScalableTarget.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ScalableTarget.fromJson(Map<String, dynamic> json) {
return ScalableTarget(
creationTime:
nonNullableTimeStampFromJson(json['CreationTime'] as Object),
maxCapacity: json['MaxCapacity'] as int,
minCapacity: json['MinCapacity'] as int,
resourceId: json['ResourceId'] as String,
roleARN: json['RoleARN'] as String,
scalableDimension:
(json['ScalableDimension'] as String).toScalableDimension(),
serviceNamespace:
(json['ServiceNamespace'] as String).toServiceNamespace(),
suspendedState: json['SuspendedState'] != null
? SuspendedState.fromJson(
json['SuspendedState'] as Map<String, dynamic>)
: null,
);
}