ComputeEnvironmentDetail.fromJson constructor
ComputeEnvironmentDetail.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ComputeEnvironmentDetail.fromJson(Map<String, dynamic> json) {
return ComputeEnvironmentDetail(
computeEnvironmentArn: json['computeEnvironmentArn'] as String,
computeEnvironmentName: json['computeEnvironmentName'] as String,
ecsClusterArn: json['ecsClusterArn'] as String,
computeResources: json['computeResources'] != null
? ComputeResource.fromJson(
json['computeResources'] as Map<String, dynamic>)
: null,
serviceRole: json['serviceRole'] as String?,
state: (json['state'] as String?)?.toCEState(),
status: (json['status'] as String?)?.toCEStatus(),
statusReason: json['statusReason'] as String?,
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
type: (json['type'] as String?)?.toCEType(),
);
}