PersistentVolumeClaimVolumeSource.fromJson constructor

PersistentVolumeClaimVolumeSource.fromJson(
  1. Map<String, dynamic> json
)

Creates a PersistentVolumeClaimVolumeSource from JSON data.

Implementation

factory PersistentVolumeClaimVolumeSource.fromJson(
    Map<String, dynamic> json) {
  final tempClaimNameJson = json['claimName'];
  final tempReadOnlyJson = json['readOnly'];

  final String tempClaimName = tempClaimNameJson;
  final bool? tempReadOnly = tempReadOnlyJson;

  return PersistentVolumeClaimVolumeSource(
    claimName: tempClaimName,
    readOnly: tempReadOnly,
  );
}