VerticalFeedItem.fromJson constructor

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

Implementation

factory VerticalFeedItem.fromJson(Map<String, dynamic> json) {
  return VerticalFeedItem(
    id: json['id'],
    title: json['title'],
    name: json['name'],
    index: json['index'],
    seen: json['seen'],
    currentTime: json['currentTime'],
    previewUrl: json['previewUrl'],
    actionUrl: json['actionUrl'],
    verticalFeedItemComponentList: castOrNull(
        json['verticalFeedItemComponentList']
            ?.map<VerticalFeedItemComponent?>(
                (e) => getVerticalFeedItemComponent(e))
            .toList()),
    actionProducts: List<STRProductItem>.from(
        json['actionProducts'].map((x) => STRProductItem.fromJson(x))),
  );
}