Nux constructor

  1. @JsonSerializable(includeIfNull: false)
const Nux({
  1. @Default('app.bsky.actor.defs#nux') String $type,
  2. required String id,
  3. @Default(false) bool completed,
  4. String? data,
  5. DateTime? expiresAt,
  6. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory Nux({
  @Default('app.bsky.actor.defs#nux') String $type,
  required String id,
  @Default(false) 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,

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