toMap method Null safety

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

model -> map

Implementation

@override
Map<String, Object?> toMap() {
  return Map.from(super.toMap())
    ..addAll({
      'items': this.items.map((coord) => coord.toMap()).toList(),
      'icon': this.icon,
      'pointSize': this.pointSize?.toMap(),
      'anchor': this.anchor?.toMap(),
    });
}