Images constructor

  1. @JsonSerializable(includeIfNull: false)
const Images({
  1. @Default(appBskyEmbedImages) @JsonKey(name: r'$type') String $type,
  2. @ImagesImageConverter() required List<ImagesImage> images,
  3. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory Images({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.embed.images`
  @Default(appBskyEmbedImages) @JsonKey(name: r'$type') String $type,
  @ImagesImageConverter() required List<ImagesImage> images,

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