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