Images.fromJson constructor

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

Implementation

Images.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  productId = json['product_id'];
  position = json['position'];
  createdAt = json['created_at'];
  updatedAt = json['updated_at'];
  alt = json['alt'];
  width = json['width'];
  height = json['height'];
  src = json['src'];
  variantIds = json['variant_ids'].cast<int>();
  adminGraphqlApiId = json['admin_graphql_api_id'];
}