You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
989 B
Dart
38 lines
989 B
Dart
import 'dart:convert';
|
|
|
|
class GenericMapperModel {
|
|
int? totalItemsCount;
|
|
dynamic data;
|
|
int? messageStatus;
|
|
dynamic errorMessage;
|
|
dynamic errorEndUserMessage;
|
|
|
|
GenericMapperModel({
|
|
this.totalItemsCount,
|
|
this.data,
|
|
this.messageStatus,
|
|
this.errorMessage,
|
|
this.errorEndUserMessage,
|
|
});
|
|
|
|
factory GenericMapperModel.fromRawJson(String str) => GenericMapperModel.fromJson(json.decode(str));
|
|
|
|
String toRawJson() => json.encode(toJson());
|
|
|
|
factory GenericMapperModel.fromJson(Map<String, dynamic> json) => GenericMapperModel(
|
|
totalItemsCount: json["totalItemsCount"],
|
|
data: json["data"],
|
|
messageStatus: json["messageStatus"],
|
|
errorMessage: json["errorMessage"],
|
|
errorEndUserMessage: json["errorEndUserMessage"],
|
|
);
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
"totalItemsCount": totalItemsCount,
|
|
"data": data,
|
|
"messageStatus": messageStatus,
|
|
"errorMessage": errorMessage,
|
|
"errorEndUserMessage": errorEndUserMessage,
|
|
};
|
|
}
|