ResponseModel.fromMap constructor
Constructs a ResponseModel instance from a map.
Implementation
factory ResponseModel.fromMap(Map<String, dynamic> map) {
return ResponseModel(
entity: map['entity'] as dynamic,
error: map['error'] as dynamic,
hasMore: map['has_more'] != null ? map['has_more'] as bool : true,
message: map['message'] != null ? map['message'] as String : null,
status: map['status'] != null ? map['status'] as int : null,
);
}