toJson method
Converts a PodResourceClaim instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempName = name;
final tempSource = source;
jsonData['name'] = tempName;
if (tempSource != null) {
jsonData['source'] = tempSource.toJson();
}
return jsonData;
}