PatchDeploymentPatchConfigPreStepLinuxExecStepConfig.fromMap constructor

PatchDeploymentPatchConfigPreStepLinuxExecStepConfig.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory PatchDeploymentPatchConfigPreStepLinuxExecStepConfig.fromMap(Map<String, dynamic> map) {
  return PatchDeploymentPatchConfigPreStepLinuxExecStepConfig(
    allowedSuccessCodes: (() { final guardedValue = map['allowedSuccessCodes']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as List).cast<int>()); })(),
    gcsObject: (() { final guardedValue = map['gcsObject']; if (guardedValue == null) return null; return pulumi.Input.fromValue(PatchDeploymentPatchConfigPreStepLinuxExecStepConfigGcsObject.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    interpreter: (() { final guardedValue = map['interpreter']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    localPath: (() { final guardedValue = map['localPath']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
  );
}