Convert all the TouchBarItem data to a Map that will be used in the platform channel communication.
@override Map<String, dynamic> toMap() { return { 'id': id, 'type': type, 'image': image, }; }