toMap method

  1. @override
Map<String, Object> toMap ()

model -> map

Implementation

@override
Map<String, Object> toMap() {
  return {
    'hollowShapeType': this.hollowShapeType?.index,
    'coordinates': this.coordinates?.map((e) => e?.toMap())?.toList(),
    'center': this.center?.toMap(),
    'radius': this.radius
  };
}