AspectRatio constructor

  1. @JsonSerializable(includeIfNull: false)
const AspectRatio({
  1. @Default(appBskyEmbedDefsAspectRatio) @JsonKey(name: r'$type') String $type,
  2. required int width,
  3. required int height,
  4. @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;