PodResourceClaim.fromJson constructor
Creates a PodResourceClaim from JSON data.
Implementation
factory PodResourceClaim.fromJson(Map<String, dynamic> json) {
final tempNameJson = json['name'];
final tempSourceJson = json['source'];
final String tempName = tempNameJson;
final ClaimSource? tempSource =
tempSourceJson != null ? ClaimSource.fromJson(tempSourceJson) : null;
return PodResourceClaim(
name: tempName,
source: tempSource,
);
}