toMap method
Converts object to map.
Implementation
@override
Map<String, dynamic> toMap() {
return {
'title': title,
'titleRes': titleRes,
'subtitle': subtitle,
'subtitleRes': subtitleRes,
'icon': icon,
'iconRes': iconRes,
'type': type,
};
}