model -> map
@override Map<String, Object?> toMap() { return { 'colors': this.colors?.map((color) => color.value.toRadixString(16)).toList(), 'startPoints': this.startPoints?.map((p) => p).toList() }; }