RemoteBaseModel<T>.fromJson constructor
Creates a RemoteBaseModel instance from a JSON map.
\param json A map containing the data to initialize the model. \returns A RemoteBaseModel instance with the data from the JSON map.
Implementation
factory RemoteBaseModel.fromJson(Map<String, dynamic> json) {
return RemoteBaseModel(
status: json['status'] ?? "" as String?,
message: json['message'] ?? "" as String?,
data: json['data'] ?? "" as T?,
error: json['error'] ?? "" as Object?,
);
}