WooCartImages.fromJson constructor

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

Implementation

WooCartImages.fromJson(Map<String, dynamic> json) {
  id = json['id'].toString();
  src = json['src'];
  thumbnail = json['thumbnail'];
  srcset = json['srcset'].toString();
  sizes = json['sizes'];
  name = json['name'];
  alt = json['alt'];
}