ChatEventMemberPromoted.fromJson constructor

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

Parse from a json

Implementation

factory ChatEventMemberPromoted.fromJson(Map<String, dynamic> json) => ChatEventMemberPromoted(
  userId: json['user_id'],
  oldStatus: ChatMemberStatus.fromJson(json['old_status']),
  newStatus: ChatMemberStatus.fromJson(json['new_status']),
);