toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final command = this.command;
  final environment = this.environment;
  final executionRoleArn = this.executionRoleArn;
  final fargatePlatformConfiguration = this.fargatePlatformConfiguration;
  final image = this.image;
  final instanceType = this.instanceType;
  final jobRoleArn = this.jobRoleArn;
  final linuxParameters = this.linuxParameters;
  final logConfiguration = this.logConfiguration;
  final memory = this.memory;
  final mountPoints = this.mountPoints;
  final networkConfiguration = this.networkConfiguration;
  final privileged = this.privileged;
  final readonlyRootFilesystem = this.readonlyRootFilesystem;
  final resourceRequirements = this.resourceRequirements;
  final secrets = this.secrets;
  final ulimits = this.ulimits;
  final user = this.user;
  final vcpus = this.vcpus;
  final volumes = this.volumes;
  return {
    if (command != null) 'command': command,
    if (environment != null) 'environment': environment,
    if (executionRoleArn != null) 'executionRoleArn': executionRoleArn,
    if (fargatePlatformConfiguration != null)
      'fargatePlatformConfiguration': fargatePlatformConfiguration,
    if (image != null) 'image': image,
    if (instanceType != null) 'instanceType': instanceType,
    if (jobRoleArn != null) 'jobRoleArn': jobRoleArn,
    if (linuxParameters != null) 'linuxParameters': linuxParameters,
    if (logConfiguration != null) 'logConfiguration': logConfiguration,
    if (memory != null) 'memory': memory,
    if (mountPoints != null) 'mountPoints': mountPoints,
    if (networkConfiguration != null)
      'networkConfiguration': networkConfiguration,
    if (privileged != null) 'privileged': privileged,
    if (readonlyRootFilesystem != null)
      'readonlyRootFilesystem': readonlyRootFilesystem,
    if (resourceRequirements != null)
      'resourceRequirements': resourceRequirements,
    if (secrets != null) 'secrets': secrets,
    if (ulimits != null) 'ulimits': ulimits,
    if (user != null) 'user': user,
    if (vcpus != null) 'vcpus': vcpus,
    if (volumes != null) 'volumes': volumes,
  };
}