EnvironmentArgs.fromMap constructor

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

Implementation

factory EnvironmentArgs.fromMap(Map<String, dynamic> map) {
  return EnvironmentArgs(
    apiProxyType: (() { final guardedValue = map['apiProxyType']; if (guardedValue == null) return null; return pulumi.Input.fromValue(EnvironmentApiProxyType.fromValue(guardedValue as String)); })(),
    deploymentType: (() { final guardedValue = map['deploymentType']; if (guardedValue == null) return null; return pulumi.Input.fromValue(EnvironmentDeploymentType.fromValue(guardedValue as String)); })(),
    description: (() { final guardedValue = map['description']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    displayName: (() { final guardedValue = map['displayName']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    forwardProxyUri: (() { final guardedValue = map['forwardProxyUri']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    hasAttachedFlowHooks: (() { final guardedValue = map['hasAttachedFlowHooks']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as bool); })(),
    name: (() { final guardedValue = map['name']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    nodeConfig: (() { final guardedValue = map['nodeConfig']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudApigeeV1NodeConfig.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    organizationId: pulumi.Input.fromValue(map['organizationId'] as String),
    properties: (() { final guardedValue = map['properties']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudApigeeV1Properties.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    type: (() { final guardedValue = map['type']; if (guardedValue == null) return null; return pulumi.Input.fromValue(EnvironmentType.fromValue(guardedValue as String)); })(),
  );
}