AspectRatio constructor
- @JsonSerializable(includeIfNull: false)
const
AspectRatio(
{ - @Default(appBskyEmbedDefsAspectRatio) @JsonKey(name: r'$type') String $type,
- required int width,
- required int height,
- @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory AspectRatio({
/// The unique namespace for this lex object.
///
/// `app.bsky.embed.defs#aspectRatio`
@Default(appBskyEmbedDefsAspectRatio) @JsonKey(name: r'$type') String $type,
required int width,
required int height,
/// Contains unknown objects not defined in Lexicon.
@JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _AspectRatio;