toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    if (id != null) 'id': id,
    'name': name,
    if (slug != null) 'slug': slug,
    if (type != null) 'type': type,
    if (order_by != null) 'order_by': order_by,
    if (has_archives != null) 'has_archives': has_archives,
  };
}