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