ChatEventUsernameChanged.fromJson constructor

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

Parse from a json

Implementation

factory ChatEventUsernameChanged.fromJson(Map<String, dynamic> json) => ChatEventUsernameChanged(
  oldUsername: json['old_username'],
  newUsername: json['new_username'],
);