StoryProductTagComponent.fromJson constructor

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

Implementation

factory StoryProductTagComponent.fromJson(Map<String, dynamic> json) {
  return StoryProductTagComponent(
    type: json['type'],
    id: json['id'],
    customPayload: json['customPayload'],
    actionUrl: json['actionUrl'],
    products: List<STRProductItem>.from(
        json['products'].map((x) => STRProductItem.fromJson(x))),
  );
}