toMap method

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

model -> map

Implementation

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