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