ProfileView constructor

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