toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['product_id'] = this.productId;
data['position'] = this.position;
data['created_at'] = this.createdAt;
data['updated_at'] = this.updatedAt;
data['alt'] = this.alt;
data['width'] = this.width;
data['height'] = this.height;
data['src'] = this.src;
data['variant_ids'] = this.variantIds;
data['admin_graphql_api_id'] = this.adminGraphqlApiId;
return data;
}