Cluster.fromJson constructor
Cluster.fromJson(
- Map json_
Implementation
Cluster.fromJson(core.Map json_)
: this(
authorizationMode: json_.containsKey('authorizationMode')
? json_['authorizationMode'] as core.String
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
discoveryEndpoints: json_.containsKey('discoveryEndpoints')
? (json_['discoveryEndpoints'] as core.List)
.map((value) => DiscoveryEndpoint.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
pscConfigs: json_.containsKey('pscConfigs')
? (json_['pscConfigs'] as core.List)
.map((value) => PscConfig.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
pscConnections: json_.containsKey('pscConnections')
? (json_['pscConnections'] as core.List)
.map((value) => PscConnection.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
replicaCount: json_.containsKey('replicaCount')
? json_['replicaCount'] as core.int
: null,
shardCount: json_.containsKey('shardCount')
? json_['shardCount'] as core.int
: null,
sizeGb:
json_.containsKey('sizeGb') ? json_['sizeGb'] as core.int : null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
stateInfo: json_.containsKey('stateInfo')
? StateInfo.fromJson(
json_['stateInfo'] as core.Map<core.String, core.dynamic>)
: null,
transitEncryptionMode: json_.containsKey('transitEncryptionMode')
? json_['transitEncryptionMode'] as core.String
: null,
uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
);