@override Map<String, dynamic> toMap() { return { 'type': 'dot', 'brushesForState': _brushesForState.map((e) => e.toMap()).toList(), }; }