DrivingBehaviourAnalysisOption.fromMap constructor
- Map map
map => DrivingBehaviourAnalysisOption
Implementation
DrivingBehaviourAnalysisOption.fromMap(Map map)
: assert(map != null,
'Construct a DrivingBehaviourAnalysisOption,The parameter map cannot be null !'),
super.fromMap(map) {
entityName = map['entityName'];
startTime = map['startTime'];
endTime = map['endTime'];
speedingThreshold = map['speedingThreshold'];
thresholdOption = map['thresholdOption'] == null
? null
: DrivingBehaviorThresholdOption.fromMap(map['thresholdOption']);
processOption = map['processOption'] == null
? null
: QueryTrackProcessOption.fromMap(map['processOption']);
if (map['outputCoordType'] != null) {
int value = map['outputCoordType'] as int;
if (value >= 0 && value <= 2) {
outputCoordType = CoordType.values[value];
}
}
}