ImagesImage constructor

  1. @JsonSerializable(includeIfNull: false)
const ImagesImage({
  1. @Default(appBskyEmbedImagesImage) @JsonKey(name: r'$type') String $type,
  2. @BlobConverter() required Blob image,
  3. required String alt,
  4. @AspectRatioConverter() AspectRatio? aspectRatio,
  5. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ImagesImage({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.embed.images#image`
  @Default(appBskyEmbedImagesImage) @JsonKey(name: r'$type') String $type,
  @BlobConverter() required Blob image,

  /// Alt text description of the image, for accessibility.
  required String alt,
  @AspectRatioConverter() AspectRatio? aspectRatio,

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