VideoFeedButtonComponent.fromJson constructor

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

Implementation

factory VideoFeedButtonComponent.fromJson(Map<String, dynamic> json) {
  return VideoFeedButtonComponent(
    type: json['type'],
    id: json['id'],
    customPayload: json['customPayload'],
    text: json['text'],
    actionUrl: json['actionUrl'],
    products: (json['products'] as List<dynamic>?)
        ?.map((e) => STRProductItem.fromJson(e))
        .toList(),
  );
}