InstanceConfig.fromJson constructor
InstanceConfig.fromJson(
- Map json_
Implementation
InstanceConfig.fromJson(core.Map json_)
: this(
baseConfig: json_.containsKey('baseConfig')
? json_['baseConfig'] as core.String
: null,
configType: json_.containsKey('configType')
? json_['configType'] as core.String
: null,
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
freeInstanceAvailability:
json_.containsKey('freeInstanceAvailability')
? json_['freeInstanceAvailability'] as core.String
: 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,
leaderOptions: json_.containsKey('leaderOptions')
? (json_['leaderOptions'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
optionalReplicas: json_.containsKey('optionalReplicas')
? (json_['optionalReplicas'] as core.List)
.map((value) => ReplicaInfo.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
quorumType: json_.containsKey('quorumType')
? json_['quorumType'] as core.String
: null,
reconciling: json_.containsKey('reconciling')
? json_['reconciling'] as core.bool
: null,
replicas: json_.containsKey('replicas')
? (json_['replicas'] as core.List)
.map((value) => ReplicaInfo.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
storageLimitPerProcessingUnit:
json_.containsKey('storageLimitPerProcessingUnit')
? json_['storageLimitPerProcessingUnit'] as core.String
: null,
);