Record constructor

  1. @JsonSerializable(includeIfNull: false)
const Record({
  1. @Default(appBskyEmbedRecord) @JsonKey(name: r'$type') String $type,
  2. @StrongRefConverter() required StrongRef record,
  3. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory Record({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.embed.record`
  @Default(appBskyEmbedRecord) @JsonKey(name: r'$type') String $type,
  @StrongRefConverter() required StrongRef record,

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