ManagedInstance.fromJson constructor
ManagedInstance.fromJson(
- Map json_
Implementation
ManagedInstance.fromJson(core.Map json_)
: this(
currentAction: json_.containsKey('currentAction')
? json_['currentAction'] as core.String
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
instance: json_.containsKey('instance')
? json_['instance'] as core.String
: null,
instanceHealth: json_.containsKey('instanceHealth')
? (json_['instanceHealth'] as core.List)
.map((value) => ManagedInstanceInstanceHealth.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
instanceStatus: json_.containsKey('instanceStatus')
? json_['instanceStatus'] as core.String
: null,
lastAttempt: json_.containsKey('lastAttempt')
? ManagedInstanceLastAttempt.fromJson(
json_['lastAttempt'] as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
preservedStateFromConfig:
json_.containsKey('preservedStateFromConfig')
? PreservedState.fromJson(json_['preservedStateFromConfig']
as core.Map<core.String, core.dynamic>)
: null,
preservedStateFromPolicy:
json_.containsKey('preservedStateFromPolicy')
? PreservedState.fromJson(json_['preservedStateFromPolicy']
as core.Map<core.String, core.dynamic>)
: null,
version: json_.containsKey('version')
? ManagedInstanceVersion.fromJson(
json_['version'] as core.Map<core.String, core.dynamic>)
: null,
);