EcsParameters.fromJson constructor

EcsParameters.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory EcsParameters.fromJson(Map<String, dynamic> json) {
  return EcsParameters(
    taskDefinitionArn: json['TaskDefinitionArn'] as String,
    group: json['Group'] as String?,
    launchType: (json['LaunchType'] as String?)?.toLaunchType(),
    networkConfiguration: json['NetworkConfiguration'] != null
        ? NetworkConfiguration.fromJson(
            json['NetworkConfiguration'] as Map<String, dynamic>)
        : null,
    platformVersion: json['PlatformVersion'] as String?,
    taskCount: json['TaskCount'] as int?,
  );
}