toMap method

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

model -> map

Implementation

@override
Map<String, Object> toMap() {
  return {
    'id': this.Id,
    'center': this.center?.toMap(),
    'radius': this.radius,
    'color': this.color?.value?.toRadixString(16),
    'zIndex': this.zIndex,
    'visible': this.visible
  };
}