PersistentVolumeStatus.fromJson constructor
Creates a PersistentVolumeStatus from JSON data.
Implementation
factory PersistentVolumeStatus.fromJson(Map<String, dynamic> json) {
final tempMessageJson = json['message'];
final tempPhaseJson = json['phase'];
final tempReasonJson = json['reason'];
final String? tempMessage = tempMessageJson;
final String? tempPhase = tempPhaseJson;
final String? tempReason = tempReasonJson;
return PersistentVolumeStatus(
message: tempMessage,
phase: tempPhase,
reason: tempReason,
);
}