ECSTaskSet.fromJson constructor
ECSTaskSet.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ECSTaskSet.fromJson(Map<String, dynamic> json) {
return ECSTaskSet(
desiredCount: json['desiredCount'] as int?,
identifer: json['identifer'] as String?,
pendingCount: json['pendingCount'] as int?,
runningCount: json['runningCount'] as int?,
status: json['status'] as String?,
targetGroup: json['targetGroup'] != null
? TargetGroupInfo.fromJson(
json['targetGroup'] as Map<String, dynamic>)
: null,
taskSetLabel: (json['taskSetLabel'] as String?)?.toTargetLabel(),
trafficWeight: json['trafficWeight'] as double?,
);
}