toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['timestamp'] = timestamp;
data['status'] = status;
data['error'] = error;
data['message'] = message;
data['path'] =path;
return data;
}