Backup.fromJson constructor
Backup.fromJson(
- Map json_
Implementation
Backup.fromJson(core.Map json_)
: this(
annotations: json_.containsKey('annotations')
? (json_['annotations'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
clusterName: json_.containsKey('clusterName')
? json_['clusterName'] as core.String
: null,
clusterUid: json_.containsKey('clusterUid')
? json_['clusterUid'] as core.String
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
databaseVersion: json_.containsKey('databaseVersion')
? json_['databaseVersion'] as core.String
: null,
deleteTime: json_.containsKey('deleteTime')
? json_['deleteTime'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
encryptionConfig: json_.containsKey('encryptionConfig')
? EncryptionConfig.fromJson(json_['encryptionConfig']
as core.Map<core.String, core.dynamic>)
: null,
encryptionInfo: json_.containsKey('encryptionInfo')
? EncryptionInfo.fromJson(json_['encryptionInfo']
as core.Map<core.String, core.dynamic>)
: null,
etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
expiryQuantity: json_.containsKey('expiryQuantity')
? QuantityBasedExpiry.fromJson(json_['expiryQuantity']
as core.Map<core.String, core.dynamic>)
: null,
expiryTime: json_.containsKey('expiryTime')
? json_['expiryTime'] 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,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
reconciling: json_.containsKey('reconciling')
? json_['reconciling'] as core.bool
: null,
satisfiesPzs: json_.containsKey('satisfiesPzs')
? json_['satisfiesPzs'] as core.bool
: null,
sizeBytes: json_.containsKey('sizeBytes')
? json_['sizeBytes'] as core.String
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
);