CustomCollections.fromJson constructor
CustomCollections.fromJson(
- Map<String, dynamic> json
)
Implementation
CustomCollections.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'];
publishedScope = json['published_scope'];
adminGraphqlApiId = json['admin_graphql_api_id'];
image = json['image'] != null ? Image.fromJson(json['image']) : null;
}