CommonSearchOption.fromMap constructor
CommonSearchOption.fromMap(- Map map
)
Implementation
CommonSearchOption.fromMap(Map map)
: assert(map != null),
super.fromMap(map) {
searchFilterCondition = map['searchFilterCondition'] == null
? null
: SearchFilterCondition.fromMap(map['searchFilterCondition']);
sortBy = map['sortBy'] == null ? null : SortBy.fromMap(map['sortBy']);
if (map['coordType'] != null) {
int value = map['coordType'] as int;
if (value >= 0 && value <= 2) {
coordType = CoordType.values[value];
}
}
pageIndex = map['pageIndex'];
pageSize = map['pageSize'];
}