Set.fromJson constructor

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

Implementation

Set.fromJson(Map<String, dynamic> json) {
  setCode = json['setCode'];
  setId = json['setId'];
  if (json['sku'] != null) {
    sku = [];
    json['sku'].forEach((v) {
      sku!.add(new Sku.fromJson(v));
    });
  }
  // sTypename = json['__typename'];
}