Nux constructor
- @JsonSerializable(includeIfNull: false)
const
Nux(
{ - @Default(appBskyActorDefsNux) @JsonKey(name: r'$type') String $type,
- required String id,
- required bool completed,
- String? data,
- DateTime? expiresAt,
- @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory Nux({
/// The unique namespace for this lex object.
///
/// `app.bsky.actor.defs#nux`
@Default(appBskyActorDefsNux) @JsonKey(name: r'$type') String $type,
required String id,
required bool completed,
/// Arbitrary data for the NUX. The structure is defined by the NUX
/// itself. Limited to 300 characters.
String? data,
/// The date and time at which the NUX will expire and should be
/// considered completed.
DateTime? expiresAt,
/// Contains unknown objects not defined in Lexicon.
@JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _Nux;