toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    "@type": CONSTRUCTOR,
    "chat_id": this.chatId,
    "accessible_for": this.accessibleFor,
    "type": this.type == null ? null : this.type.toJson(),
    "title": this.title,
    "photo": this.photo == null ? null : this.photo.toJson(),
    "member_count": this.memberCount,
    "member_user_ids": this.memberUserIds.map((i) => i).toList(),
    "is_public": this.isPublic,
  };
}