toJson method
Implementation
Map<String, dynamic> toJson() {
final taskDefinitionArn = this.taskDefinitionArn;
final group = this.group;
final launchType = this.launchType;
final networkConfiguration = this.networkConfiguration;
final platformVersion = this.platformVersion;
final taskCount = this.taskCount;
return {
'TaskDefinitionArn': taskDefinitionArn,
if (group != null) 'Group': group,
if (launchType != null) 'LaunchType': launchType.toValue(),
if (networkConfiguration != null)
'NetworkConfiguration': networkConfiguration,
if (platformVersion != null) 'PlatformVersion': platformVersion,
if (taskCount != null) 'TaskCount': taskCount,
};
}