fromJSON method
void
fromJSON(
- dynamic json
)
override
Implementation
@override
void fromJSON(dynamic json) {
if (json is Map<String, dynamic>) {
if (json.containsKey("skip") && json["skip"] is int?) {
skip = json["skip"];
}
if (json.containsKey("take") && json["take"] is int?) {
take = json["take"];
}
if (json.containsKey("orderBy") && json["orderBy"] is String?) {
take = json["orderBy"];
}
if (json.containsKey("orderType") && json["orderType"] is String?) {
take = json["orderType"];
}
if (json.containsKey("search") && json["search"] is String?) {
search = json["search"];
}
if (json.containsKey("viewCode") && json["viewCode"] is String?) {
viewCode = json["viewCode"];
}
for (final field in fields) {
if (json.containsKey(field.name) && json[field.name] != null) {
field.fromJSON(json[field.name]);
}
}
}
}