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