ChatEvents.fromJson constructor
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'],
);