toJson method
Converts the RemoteBaseModel instance to a JSON map.
\returns A map containing the data of the model.
Implementation
Map<String, dynamic> toJson() {
final data = <String, dynamic>{};
data['status'] = status;
data['message'] = message;
data['data'] = data;
data['error'] = error;
return data;
}