toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.error != null) {
json[r'error'] = this.error;
} else {
json[r'error'] = null;
}
if (this.hits != null) {
json[r'hits'] = this.hits;
} else {
json[r'hits'] = null;
}
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.status != null) {
json[r'status'] = this.status;
} else {
json[r'status'] = null;
}
if (this.tookMs != null) {
json[r'took_ms'] = this.tookMs;
} else {
json[r'took_ms'] = null;
}
return json;
}