WooProductVariationImage.fromJson constructor

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

Implementation

WooProductVariationImage.fromJson(Map<String, dynamic> json)
    : id = json['id'],
      src = json['src'],
      name = json['name'],
      alt = json['alt'],
      dateCreated = DateTime.parse(json['date_created']),
      dateModifiedGMT = DateTime.parse(json['date_modified_gmt']),
      dateModified = DateTime.parse(json['date_modified']),
      dateCreatedGMT = DateTime.parse(json['date_created_gmt']);