toMap method

  1. @override
Map toMap ()

BaseResult => map

Implementation

@override
Map toMap() {
  Map map = super.toMap();
  map['fenceId'] = this.fenceId;
  map['fenceName'] = this.fenceName;
  map['fenceType'] = this.fenceType?.index;
  map['fenceShape'] = this.fenceShape?.index;
  map['district'] = this.district;
  map['districtList'] = this.districtList?.map((e) => e)?.toList();
  return map;
}