ProductAttributeModel.fromJson constructor

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

Implementation

factory ProductAttributeModel.fromJson(Map<String, dynamic> json) {
  return ProductAttributeModel(
    id: json['id'],
    name: json['name'],
    slug: json['slug'],
    type: json['type'],
    order_by: json['order_by'],
    has_archives: json['has_archives'],
  );
}