DraftWithId constructor

  1. @JsonSerializable.new(includeIfNull: false)
const DraftWithId({
  1. @Default.new('app.bsky.draft.defs#draftWithId') String $type,
  2. required String id,
  3. @DraftConverter() required Draft draft,
  4. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory DraftWithId({
  @Default('app.bsky.draft.defs#draftWithId') String $type,

  /// A TID to be used as a draft identifier.
  required String id,
  @DraftConverter() required Draft draft,

  Map<String, dynamic>? $unknown,
}) = _DraftWithId;