toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'code'] = this.code;
if (this.time != null) {
json[r'time'] = this.time!.toUtc().toIso8601String();
} else {
json[r'time'] = null;
}
json[r'warning'] = this.warning;
return json;
}