Backup.fromJson constructor
Backup.fromJson(
- Map json_
Implementation
Backup.fromJson(core.Map json_)
: this(
allNamespaces: json_.containsKey('allNamespaces')
? json_['allNamespaces'] as core.bool
: null,
clusterMetadata: json_.containsKey('clusterMetadata')
? ClusterMetadata.fromJson(json_['clusterMetadata']
as core.Map<core.String, core.dynamic>)
: null,
completeTime: json_.containsKey('completeTime')
? json_['completeTime'] as core.String
: null,
configBackupSizeBytes: json_.containsKey('configBackupSizeBytes')
? json_['configBackupSizeBytes'] as core.String
: null,
containsSecrets: json_.containsKey('containsSecrets')
? json_['containsSecrets'] as core.bool
: null,
containsVolumeData: json_.containsKey('containsVolumeData')
? json_['containsVolumeData'] as core.bool
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
deleteLockDays: json_.containsKey('deleteLockDays')
? json_['deleteLockDays'] as core.int
: null,
deleteLockExpireTime: json_.containsKey('deleteLockExpireTime')
? json_['deleteLockExpireTime'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
encryptionKey: json_.containsKey('encryptionKey')
? EncryptionKey.fromJson(
json_['encryptionKey'] as core.Map<core.String, core.dynamic>)
: null,
etag: json_.containsKey('etag') ? json_['etag'] 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,
manual:
json_.containsKey('manual') ? json_['manual'] as core.bool : null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
permissiveMode: json_.containsKey('permissiveMode')
? json_['permissiveMode'] as core.bool
: null,
podCount: json_.containsKey('podCount')
? json_['podCount'] as core.int
: null,
resourceCount: json_.containsKey('resourceCount')
? json_['resourceCount'] as core.int
: null,
retainDays: json_.containsKey('retainDays')
? json_['retainDays'] as core.int
: null,
retainExpireTime: json_.containsKey('retainExpireTime')
? json_['retainExpireTime'] as core.String
: null,
selectedApplications: json_.containsKey('selectedApplications')
? NamespacedNames.fromJson(json_['selectedApplications']
as core.Map<core.String, core.dynamic>)
: null,
selectedNamespaces: json_.containsKey('selectedNamespaces')
? Namespaces.fromJson(json_['selectedNamespaces']
as core.Map<core.String, core.dynamic>)
: null,
sizeBytes: json_.containsKey('sizeBytes')
? json_['sizeBytes'] as core.String
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
stateReason: json_.containsKey('stateReason')
? json_['stateReason'] as core.String
: null,
uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
volumeCount: json_.containsKey('volumeCount')
? json_['volumeCount'] as core.int
: null,
);