StayPointAnalysisResult.fromMap constructor

StayPointAnalysisResult.fromMap(
  1. Map map
)

Implementation

StayPointAnalysisResult.fromMap(Map map)
    : assert(map != null),
      super.fromMap(map) {
  stayPointNum = map['stayPointNum'];
  if (map['stayPoints'] != null) {
    stayPoints = <StayPoint>[];
    map['stayPoints'].forEach((e) {
      stayPoints.add(StayPoint.fromMap(e as Map));
    });
  }
}