Instance.fromJson constructor
Instance.fromJson(
- Map json_
Implementation
Instance.fromJson(core.Map json_)
: this(
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
creator: json_.containsKey('creator')
? json_['creator'] as core.String
: null,
disableProxyAccess: json_.containsKey('disableProxyAccess')
? json_['disableProxyAccess'] as core.bool
: null,
gceSetup: json_.containsKey('gceSetup')
? GceSetup.fromJson(
json_['gceSetup'] as core.Map<core.String, core.dynamic>)
: null,
healthInfo: json_.containsKey('healthInfo')
? (json_['healthInfo'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
healthState: json_.containsKey('healthState')
? json_['healthState'] as core.String
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
instanceOwners: json_.containsKey('instanceOwners')
? (json_['instanceOwners'] as core.List)
.map((value) => value as core.String)
.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,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
proxyUri: json_.containsKey('proxyUri')
? json_['proxyUri'] as core.String
: null,
satisfiesPzi: json_.containsKey('satisfiesPzi')
? json_['satisfiesPzi'] as core.bool
: null,
satisfiesPzs: json_.containsKey('satisfiesPzs')
? json_['satisfiesPzs'] as core.bool
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
thirdPartyProxyUrl: json_.containsKey('thirdPartyProxyUrl')
? json_['thirdPartyProxyUrl'] as core.String
: null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
upgradeHistory: json_.containsKey('upgradeHistory')
? (json_['upgradeHistory'] as core.List)
.map((value) => UpgradeHistoryEntry.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);