ShopLiveShortformCollectionData.fromJson constructor

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

Implementation

factory ShopLiveShortformCollectionData.fromJson(Map<String, dynamic> json) {
  return ShopLiveShortformCollectionData(
    shortsId: json['shortsId'],
    shortsCollectionId: json['shortsCollectionId'],
    tags: json['tags'],
    tagSearchOperator: json['tagSearchOperator'] == "OR"
        ? ShopLiveShortformTagSearchOperator.OR
        : ShopLiveShortformTagSearchOperator.AND,
    brands: json['brands'],
    skus: json['skus'],
    shuffle: json['shuffle'],
    referrer: json['referrer'],
  );
}