DeploymentType.fromMap constructor

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

Implementation

factory DeploymentType.fromMap(Map<String, dynamic> map) {
  return DeploymentType(
    address: (() { final guardedValue = map['address']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    config: (() { final guardedValue = map['config']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    deployTime: (() { final guardedValue = map['deployTime']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    platform: (() { final guardedValue = map['platform']; if (guardedValue == null) return null; return pulumi.Input.fromValue(DeploymentPlatform.fromValue(guardedValue as String)); })(),
    resourceUri: (() { final guardedValue = map['resourceUri']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as List).cast<String>()); })(),
    undeployTime: (() { final guardedValue = map['undeployTime']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    userEmail: (() { final guardedValue = map['userEmail']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
  );
}