fromJson static method

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

Implementation

static ChatInviteLinkCounts? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return ChatInviteLinkCounts(
    inviteLinkCounts: List<ChatInviteLinkCount>.from(
      tdListFromJson(json['invite_link_counts'])
          .map((item) => ChatInviteLinkCount.fromJson(tdMapFromJson(item)))
          .whereType<ChatInviteLinkCount>(),
    ),
  );
}