QueryHistoryTrackOption.fromMap constructor

QueryHistoryTrackOption.fromMap(
  1. Map map
)

map => QueryHistoryTrackOption

Implementation

QueryHistoryTrackOption.fromMap(Map map)
    : assert(map != null,
          'Construct a QueryHistoryTrackOption,The parameter map cannot be null !'),
      super.fromMap(map) {
  entityName = map['entityName'];
  startTime = map['startTime'];
  endTime = map['endTime'];
  isProcessed = map['isProcessed'];
  processOption = map['processOption'] == null
      ? null
      : QueryTrackProcessOption.fromMap(map['processOption']);
  supplementMode = map['supplementMode'] == null
      ? null
      : TrackProcessOptionSupplementMode.values[map['supplementMode'] as int];
  supplementContent = map['supplementContent'] == null
      ? null
      : TrackProcessOptionSupplementContent
          .values[map['supplementContent'] as int];
  lowSpeedThreshold = map['lowSpeedThreshold'];

  if (map['outputCoordType'] != null) {
    int value = map['outputCoordType'] as int;
    if (value >= 0 && value <= 2) {
      outputCoordType = CoordType.values[value];
    }
  }

  sortType = map['sortType'] == null
      ? null
      : TrackSortType.values[map['sortType'] as int];
  pageIndex = map['pageIndex'];
  pageSize = map['pageSize'];
}