Category.fromJson constructor

Category.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Category.fromJson(Map<String, dynamic> json)
    : id = json['id'],
      name = json['name'],
      slug = json['slug'];