toJson method
Converts a ResourceClaimConsumerReference instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempApiGroup = apiGroup;
final tempName = name;
final tempResource = resource;
final tempUid = uid;
if (tempApiGroup != null) {
jsonData['apiGroup'] = tempApiGroup;
}
jsonData['name'] = tempName;
jsonData['resource'] = tempResource;
jsonData['uid'] = tempUid;
return jsonData;
}