ProfileViewDetailed constructor

  1. @JsonSerializable(includeIfNull: false)
const ProfileViewDetailed({
  1. @Default(appBskyActorDefsProfileViewDetailed) @JsonKey(name: r'$type') String $type,
  2. required String did,
  3. required String handle,
  4. String? displayName,
  5. String? description,
  6. String? avatar,
  7. String? banner,
  8. @Default(0) int followersCount,
  9. @Default(0) int followsCount,
  10. @Default(0) int postsCount,
  11. @ProfileAssociatedConverter() @Default(ProfileAssociated()) ProfileAssociated associated,
  12. @StarterPackViewBasicConverter() StarterPackViewBasic? joinedViaStarterPack,
  13. DateTime? indexedAt,
  14. DateTime? createdAt,
  15. @ViewerStateConverter() @Default(ViewerState()) ViewerState viewer,
  16. @LabelConverter() List<Label>? labels,
  17. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ProfileViewDetailed({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.actor.defs#profileViewDetailed`
  @Default(appBskyActorDefsProfileViewDetailed)
  @JsonKey(name: r'$type')
  String $type,
  required String did,
  required String handle,
  String? displayName,
  String? description,
  String? avatar,
  String? banner,
  @Default(0) int followersCount,
  @Default(0) int followsCount,
  @Default(0) int postsCount,
  @ProfileAssociatedConverter()
  @Default(ProfileAssociated())
  ProfileAssociated associated,
  @StarterPackViewBasicConverter() StarterPackViewBasic? joinedViaStarterPack,
  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,
}) = _ProfileViewDetailed;