RBDPersistentVolumeSource.fromJson constructor
Creates a RBDPersistentVolumeSource from JSON data.
Implementation
factory RBDPersistentVolumeSource.fromJson(Map<String, dynamic> json) {
final tempFsTypeJson = json['fsType'];
final tempImageJson = json['image'];
final tempKeyringJson = json['keyring'];
final tempMonitorsJson = json['monitors'];
final tempPoolJson = json['pool'];
final tempReadOnlyJson = json['readOnly'];
final tempSecretRefJson = json['secretRef'];
final tempUserJson = json['user'];
final String? tempFsType = tempFsTypeJson;
final String tempImage = tempImageJson;
final String? tempKeyring = tempKeyringJson;
final List<String> tempMonitors = List<String>.from(tempMonitorsJson);
final String? tempPool = tempPoolJson;
final bool? tempReadOnly = tempReadOnlyJson;
final SecretReference? tempSecretRef = tempSecretRefJson != null
? SecretReference.fromJson(tempSecretRefJson)
: null;
final String? tempUser = tempUserJson;
return RBDPersistentVolumeSource(
fsType: tempFsType,
image: tempImage,
keyring: tempKeyring,
monitors: tempMonitors,
pool: tempPool,
readOnly: tempReadOnly,
secretRef: tempSecretRef,
user: tempUser,
);
}