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