toArgMap method

Map<String, Object?> toArgMap()

Implementation

Map<String, Object?> toArgMap() => {
  'name': name.toTfJson(),
  if (id != null) 'id': id!.toTfJson(),
  if (args != null) 'args': args!.toTfJson(),
  if (env != null) 'env': env!.toTfJson(),
  if (entrypoint != null) 'entrypoint': entrypoint!.toTfJson(),
  if (dir != null) 'dir': dir!.toTfJson(),
  if (secretEnv != null) 'secret_env': secretEnv!.toTfJson(),
  if (timeout != null) 'timeout': timeout!.toTfJson(),
  if (waitFor != null) 'wait_for': waitFor!.toTfJson(),
  if (script != null) 'script': script!.toTfJson(),
  if (allowFailure != null) 'allow_failure': allowFailure!.toTfJson(),
  if (allowExitCodes != null) 'allow_exit_codes': allowExitCodes!.toTfJson(),
  if (advancedExtra != null) ...advancedExtra!,
};