ChatMemberOwner.fromJson constructor

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

Creates a new ChatMemberOwner object from json.

Implementation

factory ChatMemberOwner.fromJson(Map<String, dynamic> json) {
  return ChatMemberOwner(
    user: User.fromJson(json['user']),
    isAnonymous: json['is_anonymous'],
    customTitle: json['custom_title'],
  );
}