// To parse this JSON data, do // // final mResponse = mResponseFromJson(jsonString); import 'dart:convert'; MResponse mResponseFromJson(String str) => MResponse.fromJson(json.decode(str)); String mResponseToJson(MResponse data) => json.encode(data.toJson()); class MResponse { MResponse({ this.totalItemsCount, this.messageStatus, this.message, this.data, }); int? totalItemsCount; int? messageStatus; String? message; dynamic data; factory MResponse.fromJson(Map json) => MResponse( totalItemsCount: json["totalItemsCount"], messageStatus: json["messageStatus"], message: json["message"], data: json["data"], ); Map toJson() => { "totalItemsCount": totalItemsCount, "messageStatus": messageStatus, "message": message, }; }