ChatEvents.fromJson constructor

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

Parse from a json

Implementation

ChatEvents.fromJson(Map<String, dynamic> json) {
  this.events = List<ChatEvent>.from((json['events'] ?? [])
      .map((item) => ChatEvent.fromJson(item ?? <String, dynamic>{}))
      .toList());
  this.extra = json['@extra'];
}