Nux constructor

  1. @JsonSerializable(includeIfNull: false)
const Nux({
  1. @Default(appBskyActorDefsNux) @JsonKey(name: r'$type') String $type,
  2. required String id,
  3. required bool completed,
  4. String? data,
  5. DateTime? expiresAt,
  6. @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;