DraftWithId constructor
- @JsonSerializable.new(includeIfNull: false)
const
DraftWithId(
{ - @Default.new('app.bsky.draft.defs#draftWithId') String $type,
- required String id,
- @DraftConverter() required Draft draft,
- 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;