ChatEvents.fromJson constructor

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

Parse from a json

Implementation

factory ChatEvents.fromJson(Map<String, dynamic> json) => ChatEvents(
  events: List<ChatEvent>.from((json['events'] ?? []).map((item) => ChatEvent.fromJson(item)).toList()),
  extra: json['@extra'],
  clientId: json['@client_id'],
);