EMPageResult<T>.fromJson constructor
- Map map, {
- dynamic dataItemCallback = PageResultCallback,
Implementation
factory EMPageResult.fromJson(Map map,
{dataItemCallback = PageResultCallback}) {
EMPageResult<T> result = EMPageResult<T>._private();
result.._pageCount = map['count'];
result.._data = [];
(map['list'] as List).forEach(
(element) => result._data.add(
dataItemCallback(element),
),
);
return result;
}