ExternalView constructor

  1. @JsonSerializable(includeIfNull: false)
const ExternalView({
  1. @Default(appBskyEmbedExternalView) @JsonKey(name: r'$type') String $type,
  2. @ExternalViewExternalConverter() required ExternalViewExternal external,
  3. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ExternalView({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.embed.external#view`
  @Default(appBskyEmbedExternalView) @JsonKey(name: r'$type') String $type,
  @ExternalViewExternalConverter() required ExternalViewExternal external,

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