toMap method

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

model -> map

Implementation

@override
Map<String, Object?> toMap() {
  return {
    'icon': this.icon,
    'coordinate': this.coordinate.toMap(),
    'iconData': this.iconData != null ? this.iconData : null,
    'size': this.size != null ? this.size : null,
  };
}