JoinLinkPreviewView constructor

  1. @JsonSerializable.new(includeIfNull: false)
const JoinLinkPreviewView({
  1. @Default.new('chat.bsky.group.defs#joinLinkPreviewView') String $type,
  2. required String name,
  3. @ProfileViewBasicConverter() required ProfileViewBasic owner,
  4. required int memberCount,
  5. required bool requireApproval,
  6. @ConvoViewConverter() ConvoView? convo,
  7. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory JoinLinkPreviewView({
  @Default('chat.bsky.group.defs#joinLinkPreviewView') String $type,
  required String name,
  @ProfileViewBasicConverter() required ProfileViewBasic owner,
  required int memberCount,
  required bool requireApproval,

  /// Present only if the request is authenticated and the user is a member of the group.
  @ConvoViewConverter() ConvoView? convo,

  Map<String, dynamic>? $unknown,
}) = _JoinLinkPreviewView;