Database.fromJson constructor
Database.fromJson(
- Map json_
Implementation
Database.fromJson(core.Map json_)
: this(
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
databaseDialect: json_.containsKey('databaseDialect')
? json_['databaseDialect'] as core.String
: null,
defaultLeader: json_.containsKey('defaultLeader')
? json_['defaultLeader'] as core.String
: null,
earliestVersionTime: json_.containsKey('earliestVersionTime')
? json_['earliestVersionTime'] as core.String
: null,
enableDropProtection: json_.containsKey('enableDropProtection')
? json_['enableDropProtection'] as core.bool
: null,
encryptionConfig: json_.containsKey('encryptionConfig')
? EncryptionConfig.fromJson(json_['encryptionConfig']
as core.Map<core.String, core.dynamic>)
: null,
encryptionInfo: json_.containsKey('encryptionInfo')
? (json_['encryptionInfo'] as core.List)
.map((value) => EncryptionInfo.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
quorumInfo: json_.containsKey('quorumInfo')
? QuorumInfo.fromJson(
json_['quorumInfo'] as core.Map<core.String, core.dynamic>)
: null,
reconciling: json_.containsKey('reconciling')
? json_['reconciling'] as core.bool
: null,
restoreInfo: json_.containsKey('restoreInfo')
? RestoreInfo.fromJson(
json_['restoreInfo'] as core.Map<core.String, core.dynamic>)
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
versionRetentionPeriod: json_.containsKey('versionRetentionPeriod')
? json_['versionRetentionPeriod'] as core.String
: null,
);