PatchDeploymentPatchConfigPreStepWindowsExecStepConfig.fromMap constructor

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

Implementation

factory PatchDeploymentPatchConfigPreStepWindowsExecStepConfig.fromMap(Map<String, dynamic> map) {
  return PatchDeploymentPatchConfigPreStepWindowsExecStepConfig(
    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(PatchDeploymentPatchConfigPreStepWindowsExecStepConfigGcsObject.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); })(),
  );
}