toJson method
Implementation
Map<String, Object?> toJson() {
var errorCollection = this.errorCollection;
var status = this.status;
var warningCollection = this.warningCollection;
final json = <String, Object?>{};
if (errorCollection != null) {
json[r'errorCollection'] = errorCollection.toJson();
}
if (status != null) {
json[r'status'] = status;
}
if (warningCollection != null) {
json[r'warningCollection'] = warningCollection.toJson();
}
return json;
}