ProfileView constructor
- @JsonSerializable(includeIfNull: false)
const
ProfileView(
{ - @Default(appBskyActorDefsProfileView) @JsonKey(name: r'$type') String $type,
- required String did,
- required String handle,
- String? displayName,
- String? description,
- String? avatar,
- @ProfileAssociatedConverter() @Default(ProfileAssociated()) ProfileAssociated associated,
- DateTime? indexedAt,
- DateTime? createdAt,
- @ViewerStateConverter() @Default(ViewerState()) ViewerState viewer,
- @LabelConverter() List<Label>? labels,
- @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory ProfileView({
/// The unique namespace for this lex object.
///
/// `app.bsky.actor.defs#profileView`
@Default(appBskyActorDefsProfileView) @JsonKey(name: r'$type') String $type,
required String did,
required String handle,
String? displayName,
String? description,
String? avatar,
@ProfileAssociatedConverter()
@Default(ProfileAssociated())
ProfileAssociated associated,
DateTime? indexedAt,
DateTime? createdAt,
@ViewerStateConverter() @Default(ViewerState()) ViewerState viewer,
@LabelConverter() List<Label>? labels,
/// Contains unknown objects not defined in Lexicon.
@JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _ProfileView;