toJson method
Converts a ResourceQuotaStatus instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempHard = hard;
final tempUsed = used;
if (tempHard != null) {
jsonData['hard'] = tempHard;
}
if (tempUsed != null) {
jsonData['used'] = tempUsed;
}
return jsonData;
}