toJson method
Converts a UncountedTerminatedPods instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempFailed = failed;
final tempSucceeded = succeeded;
if (tempFailed != null) {
jsonData['failed'] = tempFailed;
}
if (tempSucceeded != null) {
jsonData['succeeded'] = tempSucceeded;
}
return jsonData;
}