DeploymentPatchAppsV1beta2.fromMap constructor

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

Implementation

factory DeploymentPatchAppsV1beta2.fromMap(Map<String, dynamic> map) {
  return DeploymentPatchAppsV1beta2(
    apiVersion: (() { final guardedValue = map['apiVersion']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    kind: (() { final guardedValue = map['kind']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    metadata: (() { final guardedValue = map['metadata']; if (guardedValue == null) return null; return pulumi.Input.fromValue(ObjectMetaPatch.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    spec: (() { final guardedValue = map['spec']; if (guardedValue == null) return null; return pulumi.Input.fromValue(DeploymentSpecPatchAppsV1beta2.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    status: (() { final guardedValue = map['status']; if (guardedValue == null) return null; return pulumi.Input.fromValue(DeploymentStatusPatchAppsV1beta2.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
  );
}