fromJson static method

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

Creates a object from a json

Implementation

static ChatInviteLink fromJson(Map<String, dynamic> json) {
  return ChatInviteLink(
    inviteLink: json['invite_link']!,
    creator: User.fromJson(json['creator']!),
    createsJoinRequest: json['creates_join_request']!,
    isPrimary: json['is_primary']!,
    isRevoked: json['is_revoked']!,
    name: json['name'],
    expireDate: json['expire_date'],
    memberLimit: json['member_limit'],
    pendingJoinRequestCount: json['pending_join_request_count'],
  );
}