PaywallClickEvent.fromJson constructor

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

Implementation

PaywallClickEvent.fromJson(Map<String, dynamic> json) {
  topic = json['topic'];
  if (json['messageBody'] != null) {
    messageBody = <MessageBodyEvent>[];
    json['messageBody'].forEach((v) {
      messageBody!.add(new MessageBodyEvent.fromJson(v));
    });
  }
}