ImagesViewImage constructor
- @JsonSerializable(includeIfNull: false)
const
ImagesViewImage(
{ - @Default(appBskyEmbedImagesViewImage) @JsonKey(name: r'$type') String $type,
- required String thumb,
- required String fullsize,
- required String alt,
- @AspectRatioConverter() AspectRatio? aspectRatio,
- @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory ImagesViewImage({
/// The unique namespace for this lex object.
///
/// `app.bsky.embed.images#viewImage`
@Default(appBskyEmbedImagesViewImage) @JsonKey(name: r'$type') String $type,
/// Fully-qualified URL where a thumbnail of the image can be
/// fetched. For example, CDN location provided by the App View.
required String thumb,
/// Fully-qualified URL where a large version of the image can be
/// fetched. May or may not be the exact original blob. For example,
/// CDN location provided by the App View.
required String fullsize,
/// 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,
}) = _ImagesViewImage;