ChatInviteLinkInfo.fromJson constructor

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

Parse from a json

Implementation

ChatInviteLinkInfo.fromJson(Map<String, dynamic> json) {
  this.chatId = json['chat_id'];
  this.accessibleFor = json['accessible_for'];
  this.type = ChatType.fromJson(json['type'] ?? <String, dynamic>{});
  this.title = json['title'];
  this.photo = ChatPhotoInfo.fromJson(json['photo'] ?? <String, dynamic>{});
  this.memberCount = json['member_count'];
  this.memberUserIds = List<int>.from(
      (json['member_user_ids'] ?? []).map((item) => item).toList());
  this.isPublic = json['is_public'];
  this.extra = json['@extra'];
}