ProfileViewBasic constructor

  1. @JsonSerializable(includeIfNull: false)
const ProfileViewBasic({
  1. @Default(appBskyActorDefsProfileViewBasic) @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. DateTime? createdAt,
  10. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ProfileViewBasic({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.actor.defs#profileViewBasic`
  @Default(appBskyActorDefsProfileViewBasic)
  @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,
  DateTime? createdAt,

  /// Contains unknown objects not defined in Lexicon.
  @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _ProfileViewBasic;