toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['icon'] = icon;
data['title'] = title;
data['onTap'] = null;
data['path'] = null;
data['key'] = null;
return data;
}