Slide.fromJson constructor

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

Implementation

factory Slide.fromJson(Map<String, dynamic> json) => Slide(
      mediaId: json["mediaId"],
      hasCta: json["hasCta"],
      cta: Cta.fromJson(json["cta"]),
      mediaUrl: json["mediaUrl"],
      components: List<UIComponent>.from(
        json["components"].map(
          (x) => UIComponent.fromJson(x),
        ),
      ),
      hasCustomHtml: json["hasCustomHtml"],
      customHtml: json["customHtml"],
    );