toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (allowExitCodes != null) 'allowExitCodes': allowExitCodes!,
      if (allowFailure != null) 'allowFailure': allowFailure!,
      if (args != null) 'args': args!,
      if (automapSubstitutions != null)
        'automapSubstitutions': automapSubstitutions!,
      if (dir != null) 'dir': dir!,
      if (entrypoint != null) 'entrypoint': entrypoint!,
      if (env != null) 'env': env!,
      if (exitCode != null) 'exitCode': exitCode!,
      if (id != null) 'id': id!,
      if (name != null) 'name': name!,
      if (pullTiming != null) 'pullTiming': pullTiming!,
      if (script != null) 'script': script!,
      if (secretEnv != null) 'secretEnv': secretEnv!,
      if (status != null) 'status': status!,
      if (timeout != null) 'timeout': timeout!,
      if (timing != null) 'timing': timing!,
      if (volumes != null) 'volumes': volumes!,
      if (waitFor != null) 'waitFor': waitFor!,
    };