ProfileViewBasic constructor

  1. @JsonSerializable(includeIfNull: false)
const ProfileViewBasic({
  1. @Default(chatBskyActorDefsProfileViewBasic) @JsonKey(name: r'$type') String $type,
  2. required String did,
  3. required String handle,
  4. String? displayName,
  5. String? avatar,
  6. @ProfileAssociatedConverter() @Default(ProfileAssociated()) ProfileAssociated associated,
  7. @ViewerStateConverter() @Default(ViewerState()) ViewerState viewer,
  8. @LabelConverter() List<Label>? labels,
  9. @Default(false) bool chatDisabled,
  10. @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;