ChatEventActiveUsernamesChanged.fromJson constructor

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

Parse from a json

Implementation

factory ChatEventActiveUsernamesChanged.fromJson(Map<String, dynamic> json) =>
    ChatEventActiveUsernamesChanged(
      oldUsernames: List<String>.from(
          (json['old_usernames'] ?? []).map((item) => item).toList()),
      newUsernames: List<String>.from(
          (json['new_usernames'] ?? []).map((item) => item).toList()),
    );