toMap method

  1. @override
Map toMap ()

BaseResult => map

Implementation

@override
Map toMap() {
  Map map = super.toMap();
  map['locType'] = locType?.index;
  map['floor'] = floor;
  map['indoor'] = indoor;
  map['building'] = building;
  map['latitude'] = latitude;
  map['longitude'] = longitude;
  map['coordType'] = coordType?.index;
  map['radius'] = radius;
  map['direction'] = direction;
  map['speed'] = speed;
  map['altitude'] = altitude;
  map['time'] = time;
  return map;
}