ProfileViewBasic constructor
- @JsonSerializable(includeIfNull: false)
const
ProfileViewBasic(
{ - @Default(chatBskyActorDefsProfileViewBasic) @JsonKey(name: r'$type') String $type,
- required String did,
- required String handle,
- String? displayName,
- String? avatar,
- @ProfileAssociatedConverter() @Default(ProfileAssociated()) ProfileAssociated associated,
- @ViewerStateConverter() @Default(ViewerState()) ViewerState viewer,
- @LabelConverter() List<Label>? labels,
- @Default(false) bool chatDisabled,
- @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory ProfileViewBasic({
/// The unique namespace for this lex object.
///
/// `chat.bsky.actor.defs#profileViewBasic`
@Default(chatBskyActorDefsProfileViewBasic)
@JsonKey(name: r'$type')
String $type,
required String did,
required String handle,
String? displayName,
String? avatar,
@ProfileAssociatedConverter()
@Default(ProfileAssociated())
ProfileAssociated associated,
@ViewerStateConverter() @Default(ViewerState()) ViewerState viewer,
@LabelConverter() List<Label>? labels,
/// Set to true when the actor cannot actively participate in
/// converations
@Default(false) bool chatDisabled,
/// Contains unknown objects not defined in Lexicon.
@JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _ProfileViewBasic;