ChatViewEvent.fromJson constructor

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

Parsing ChatViewEvent from json.

Implementation

factory ChatViewEvent.fromJson(Map<String, dynamic> json) => ChatViewEvent(
      eventName: json['eventName'] as String,
      payload: (json['payload'] != null) ? json['payload'] as dynamic : null,
    );