BaseResponse.fromJson constructor
Implementation
factory BaseResponse.fromJson(Map<String, dynamic> json) => BaseResponse(
message: json['message'],
status: (json['status'] != null && json['status'] is num)
? int.tryParse(json['status'])
: null,
result: json['result'] ?? json['results'] ?? json['data'] ?? json,
);