ProfileViewBasic constructor

  1. @JsonSerializable(includeIfNull: false)
const ProfileViewBasic({
  1. @Default('chat.bsky.actor.defs#profileViewBasic') String $type,
  2. required String did,
  3. required String handle,
  4. String? displayName,
  5. String? avatar,
  6. @ProfileAssociatedConverter() ProfileAssociated? associated,
  7. @ViewerStateConverter() ViewerState? viewer,
  8. @LabelConverter() List<Label>? labels,
  9. bool? chatDisabled,
  10. @VerificationStateConverter() VerificationState? verification,
  11. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ProfileViewBasic({
  @Default('chat.bsky.actor.defs#profileViewBasic') String $type,
  required String did,
  required String handle,
  String? displayName,
  String? avatar,
  @ProfileAssociatedConverter() ProfileAssociated? associated,
  @ViewerStateConverter() ViewerState? viewer,
  @LabelConverter() List<Label>? labels,

  /// Set to true when the actor cannot actively participate in conversations
  bool? chatDisabled,
  @VerificationStateConverter() VerificationState? verification,

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