toJson method
Converts a CustomResourceSubresources instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempScale = scale;
final tempStatus = status;
if (tempScale != null) {
jsonData['scale'] = tempScale.toJson();
}
if (tempStatus != null) {
jsonData['status'] = tempStatus.toJson();
}
return jsonData;
}