ChatInviteLink.fromJson constructor

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

Parse from a json

Implementation

factory ChatInviteLink.fromJson(Map<String, dynamic> json) => ChatInviteLink(
      inviteLink: json['invite_link'],
      name: json['name'],
      creatorUserId: json['creator_user_id'],
      date: json['date'],
      editDate: json['edit_date'],
      expirationDate: json['expiration_date'],
      memberLimit: json['member_limit'],
      memberCount: json['member_count'],
      pendingJoinRequestCount: json['pending_join_request_count'],
      createsJoinRequest: json['creates_join_request'],
      isPrimary: json['is_primary'],
      isRevoked: json['is_revoked'],
      extra: json['@extra'],
      clientId: json['@client_id'],
    );