CollectionModel.fromJson constructor

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

Implementation

CollectionModel.fromJson(Map<String, dynamic> json) {
  collectionId = json['collection_id'];
  customerId = json['customer_id'];
  collectionName = json['collection_name'];
  image = json['image'];
  sortOrder = json['sort_order'];
  productCount = json['product_count'];
}