@override Map<String, dynamic> toJson() { return { ...super.toJson(), 'text': text.toJson(), 'icon': icon.instantJsonName, 'color': Annotation._colorToHex(color), }; }