toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    if (id != null) 'id': id,
    'name': name,
    if (slug != null) 'slug': slug,
    'description': description,
    if (menu_order != null) 'menu_order': menu_order,
    if (count != null) 'count': count,
  };
}