ProfileRecord constructor

  1. @JsonSerializable(includeIfNull: false)
const ProfileRecord({
  1. @Default(appBskyActorProfile) @JsonKey(name: r'$type') String $type,
  2. String? displayName,
  3. String? description,
  4. @BlobConverter() Blob? avatar,
  5. @BlobConverter() Blob? banner,
  6. @UProfileLabelConverter() UProfileLabel? labels,
  7. @StrongRefConverter() StrongRef? joinedViaStarterPack,
  8. DateTime? createdAt,
  9. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ProfileRecord({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.actor.profile`
  @Default(appBskyActorProfile) @JsonKey(name: r'$type') String $type,
  String? displayName,

  /// Free-form profile description text.
  String? description,

  /// Small image to be displayed next to posts from account. AKA,
  /// 'profile picture'
  @BlobConverter() Blob? avatar,

  /// Larger horizontal image to display behind profile view.
  @BlobConverter() Blob? banner,

  /// Self-label values, specific to the Bluesky application, on the
  /// overall account.
  @UProfileLabelConverter() UProfileLabel? labels,
  @StrongRefConverter() StrongRef? joinedViaStarterPack,
  DateTime? createdAt,

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