Volume.fromJson constructor
Volume.fromJson(
- Map json_
Implementation
Volume.fromJson(core.Map json_)
: this(
configMap: json_.containsKey('configMap')
? ConfigMapVolumeSource.fromJson(
json_['configMap'] as core.Map<core.String, core.dynamic>)
: null,
csi: json_.containsKey('csi')
? CSIVolumeSource.fromJson(
json_['csi'] as core.Map<core.String, core.dynamic>)
: null,
emptyDir: json_.containsKey('emptyDir')
? EmptyDirVolumeSource.fromJson(
json_['emptyDir'] as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
nfs: json_.containsKey('nfs')
? NFSVolumeSource.fromJson(
json_['nfs'] as core.Map<core.String, core.dynamic>)
: null,
secret: json_.containsKey('secret')
? SecretVolumeSource.fromJson(
json_['secret'] as core.Map<core.String, core.dynamic>)
: null,
);