toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final command = this.command;
  final cpu = this.cpu;
  final dependsOn = this.dependsOn;
  final disableNetworking = this.disableNetworking;
  final dnsSearchDomains = this.dnsSearchDomains;
  final dnsServers = this.dnsServers;
  final dockerLabels = this.dockerLabels;
  final dockerSecurityOptions = this.dockerSecurityOptions;
  final entryPoint = this.entryPoint;
  final environment = this.environment;
  final environmentFiles = this.environmentFiles;
  final essential = this.essential;
  final extraHosts = this.extraHosts;
  final firelensConfiguration = this.firelensConfiguration;
  final healthCheck = this.healthCheck;
  final hostname = this.hostname;
  final image = this.image;
  final interactive = this.interactive;
  final links = this.links;
  final linuxParameters = this.linuxParameters;
  final logConfiguration = this.logConfiguration;
  final memory = this.memory;
  final memoryReservation = this.memoryReservation;
  final mountPoints = this.mountPoints;
  final name = this.name;
  final portMappings = this.portMappings;
  final privileged = this.privileged;
  final pseudoTerminal = this.pseudoTerminal;
  final readonlyRootFilesystem = this.readonlyRootFilesystem;
  final repositoryCredentials = this.repositoryCredentials;
  final resourceRequirements = this.resourceRequirements;
  final secrets = this.secrets;
  final startTimeout = this.startTimeout;
  final stopTimeout = this.stopTimeout;
  final systemControls = this.systemControls;
  final ulimits = this.ulimits;
  final user = this.user;
  final volumesFrom = this.volumesFrom;
  final workingDirectory = this.workingDirectory;
  return {
    if (command != null) 'command': command,
    if (cpu != null) 'cpu': cpu,
    if (dependsOn != null) 'dependsOn': dependsOn,
    if (disableNetworking != null) 'disableNetworking': disableNetworking,
    if (dnsSearchDomains != null) 'dnsSearchDomains': dnsSearchDomains,
    if (dnsServers != null) 'dnsServers': dnsServers,
    if (dockerLabels != null) 'dockerLabels': dockerLabels,
    if (dockerSecurityOptions != null)
      'dockerSecurityOptions': dockerSecurityOptions,
    if (entryPoint != null) 'entryPoint': entryPoint,
    if (environment != null) 'environment': environment,
    if (environmentFiles != null) 'environmentFiles': environmentFiles,
    if (essential != null) 'essential': essential,
    if (extraHosts != null) 'extraHosts': extraHosts,
    if (firelensConfiguration != null)
      'firelensConfiguration': firelensConfiguration,
    if (healthCheck != null) 'healthCheck': healthCheck,
    if (hostname != null) 'hostname': hostname,
    if (image != null) 'image': image,
    if (interactive != null) 'interactive': interactive,
    if (links != null) 'links': links,
    if (linuxParameters != null) 'linuxParameters': linuxParameters,
    if (logConfiguration != null) 'logConfiguration': logConfiguration,
    if (memory != null) 'memory': memory,
    if (memoryReservation != null) 'memoryReservation': memoryReservation,
    if (mountPoints != null) 'mountPoints': mountPoints,
    if (name != null) 'name': name,
    if (portMappings != null) 'portMappings': portMappings,
    if (privileged != null) 'privileged': privileged,
    if (pseudoTerminal != null) 'pseudoTerminal': pseudoTerminal,
    if (readonlyRootFilesystem != null)
      'readonlyRootFilesystem': readonlyRootFilesystem,
    if (repositoryCredentials != null)
      'repositoryCredentials': repositoryCredentials,
    if (resourceRequirements != null)
      'resourceRequirements': resourceRequirements,
    if (secrets != null) 'secrets': secrets,
    if (startTimeout != null) 'startTimeout': startTimeout,
    if (stopTimeout != null) 'stopTimeout': stopTimeout,
    if (systemControls != null) 'systemControls': systemControls,
    if (ulimits != null) 'ulimits': ulimits,
    if (user != null) 'user': user,
    if (volumesFrom != null) 'volumesFrom': volumesFrom,
    if (workingDirectory != null) 'workingDirectory': workingDirectory,
  };
}