toMap method
Used to serialize to the map for persisting data.
Implementation
Map toMap() {
return {
'text': text,
'imagePath': imagePath,
};
}
Used to serialize to the map for persisting data.
Map toMap() {
return {
'text': text,
'imagePath': imagePath,
};
}