Instance.fromJson constructor
Instance.fromJson(
- Map json_
Implementation
Instance.fromJson(core.Map json_)
: this(
authorizedNetwork: json_.containsKey('authorizedNetwork')
? json_['authorizedNetwork'] as core.String
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
discoveryEndpoint: json_.containsKey('discoveryEndpoint')
? json_['discoveryEndpoint'] as core.String
: null,
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
instanceMessages: json_.containsKey('instanceMessages')
? (json_['instanceMessages'] as core.List)
.map((value) => InstanceMessage.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
labels: json_.containsKey('labels')
? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
maintenancePolicy: json_.containsKey('maintenancePolicy')
? GoogleCloudMemcacheV1MaintenancePolicy.fromJson(
json_['maintenancePolicy']
as core.Map<core.String, core.dynamic>)
: null,
maintenanceSchedule: json_.containsKey('maintenanceSchedule')
? MaintenanceSchedule.fromJson(json_['maintenanceSchedule']
as core.Map<core.String, core.dynamic>)
: null,
memcacheFullVersion: json_.containsKey('memcacheFullVersion')
? json_['memcacheFullVersion'] as core.String
: null,
memcacheNodes: json_.containsKey('memcacheNodes')
? (json_['memcacheNodes'] as core.List)
.map((value) => Node.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
memcacheVersion: json_.containsKey('memcacheVersion')
? json_['memcacheVersion'] as core.String
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
nodeConfig: json_.containsKey('nodeConfig')
? NodeConfig.fromJson(
json_['nodeConfig'] as core.Map<core.String, core.dynamic>)
: null,
nodeCount: json_.containsKey('nodeCount')
? json_['nodeCount'] as core.int
: null,
parameters: json_.containsKey('parameters')
? MemcacheParameters.fromJson(
json_['parameters'] as core.Map<core.String, core.dynamic>)
: null,
reservedIpRangeId: json_.containsKey('reservedIpRangeId')
? (json_['reservedIpRangeId'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
zones: json_.containsKey('zones')
? (json_['zones'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
);