FenceInfo.fromMap constructor
FenceInfo.fromMap(- Map map
)
Implementation
FenceInfo.fromMap(Map map) : assert(map != null) {
fenceShape = map['fenceShape'] == null
? null
: FenceShape.values[map['fenceShape'] as int];
circleFence = map['circleFence'] == null
? null
: CircleFence.fromMap(map['circleFence']);
polygonFence = map['polygonFence'] == null
? null
: PolygonFence.fromMap(map['polygonFence']);
polylineFence = map['polylineFence'] == null
? null
: PolylineFence.fromMap(map['polylineFence']);
districtFence = map['districtFence'] == null
? null
: DistrictFence.fromMap(map['districtFence']);
createTime = map['createTime'];
modifyTime = map['modifyTime'];
}