Map<String, dynamic> toMap() { return { 'text': text, 'imageType': imageTypeToString(imageType), }; }