GetInstanceResult.fromMap constructor
GetInstanceResult.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GetInstanceResult.fromMap(Map<String, dynamic> map) {
return GetInstanceResult(
authorizedNetwork: (() { final guardedValue = map['authorizedNetwork']; if (guardedValue == null) return null; return guardedValue as String; })(),
createTime: (() { final guardedValue = map['createTime']; if (guardedValue == null) return null; return guardedValue as String; })(),
deletionPolicy: (() { final guardedValue = map['deletionPolicy']; if (guardedValue == null) return null; return guardedValue as String; })(),
deletionProtection: (() { final guardedValue = map['deletionProtection']; if (guardedValue == null) return null; return guardedValue as bool; })(),
discoveryEndpoint: (() { final guardedValue = map['discoveryEndpoint']; if (guardedValue == null) return null; return guardedValue as String; })(),
displayName: (() { final guardedValue = map['displayName']; if (guardedValue == null) return null; return guardedValue as String; })(),
effectiveLabels: (() { final guardedValue = map['effectiveLabels']; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); })(),
id: (() { final guardedValue = map['id']; if (guardedValue == null) return null; return guardedValue as String; })(),
labels: (() { final guardedValue = map['labels']; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); })(),
maintenancePolicies: (() { final guardedValue = map['maintenancePolicies']; if (guardedValue == null) return null; return pulumi.Input.decodeList<GetInstanceMaintenancePolicy>(guardedValue, (value) => GetInstanceMaintenancePolicy.fromMap((value as Map).cast<String, dynamic>())); })(),
maintenanceSchedules: (() { final guardedValue = map['maintenanceSchedules']; if (guardedValue == null) return null; return pulumi.Input.decodeList<GetInstanceMaintenanceSchedule>(guardedValue, (value) => GetInstanceMaintenanceSchedule.fromMap((value as Map).cast<String, dynamic>())); })(),
memcacheFullVersion: (() { final guardedValue = map['memcacheFullVersion']; if (guardedValue == null) return null; return guardedValue as String; })(),
memcacheNodes: (() { final guardedValue = map['memcacheNodes']; if (guardedValue == null) return null; return pulumi.Input.decodeList<GetInstanceMemcacheNode>(guardedValue, (value) => GetInstanceMemcacheNode.fromMap((value as Map).cast<String, dynamic>())); })(),
memcacheParameters: (() { final guardedValue = map['memcacheParameters']; if (guardedValue == null) return null; return pulumi.Input.decodeList<GetInstanceMemcacheParameter>(guardedValue, (value) => GetInstanceMemcacheParameter.fromMap((value as Map).cast<String, dynamic>())); })(),
memcacheVersion: (() { final guardedValue = map['memcacheVersion']; if (guardedValue == null) return null; return guardedValue as String; })(),
name: (() { final guardedValue = map['name']; if (guardedValue == null) return null; return guardedValue as String; })(),
nodeConfigs: (() { final guardedValue = map['nodeConfigs']; if (guardedValue == null) return null; return pulumi.Input.decodeList<GetInstanceNodeConfig>(guardedValue, (value) => GetInstanceNodeConfig.fromMap((value as Map).cast<String, dynamic>())); })(),
nodeCount: (() { final guardedValue = map['nodeCount']; if (guardedValue == null) return null; return (guardedValue as num).toInt(); })(),
project: (() { final guardedValue = map['project']; if (guardedValue == null) return null; return guardedValue as String; })(),
pulumiLabels: (() { final guardedValue = map['pulumiLabels']; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); })(),
region: (() { final guardedValue = map['region']; if (guardedValue == null) return null; return guardedValue as String; })(),
reservedIpRangeIds: (() { final guardedValue = map['reservedIpRangeIds']; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); })(),
zones: (() { final guardedValue = map['zones']; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); })(),
);
}