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