SmartCollections.fromJson constructor
SmartCollections.fromJson(
- Map<String, dynamic> json
)
Implementation
SmartCollections.fromJson(Map<String, dynamic> json) {
id = json['id'];
handle = json['handle'];
title = json['title'];
updatedAt = json['updated_at'];
bodyHtml = json['body_html'];
publishedAt = json['published_at'];
sortOrder = json['sort_order'];
templateSuffix = json['template_suffix'];
disjunctive = json['disjunctive'];
if (json['rules'] != null) {
rules = [];
json['rules'].forEach((v) {
rules!.add(Rules.fromJson(v));
});
}
publishedScope = json['published_scope'];
adminGraphqlApiId = json['admin_graphql_api_id'];
}