Archive constructor Null safety

const Archive(
  1. {required String id,
  2. required DateTime created,
  3. required DateTime updated,
  4. required String name,
  5. required Account account,
  6. required String formatId,
  7. @JsonExtra() @Default({}) Map<String, dynamic> extra}
)

Archive is a set of data user imported from other apps.

Implementation

const factory Archive({
  /// [id] is unself unique identifier for the [Archive].
  required String id,

  /// [created] is the date and time when the [Archive] was created inside unself app.
  required DateTime created,

  /// [updated] is the date and time when the [Archive] was last updated inside unself app.
  required DateTime updated,

  /// [name] is the name of the [Archive].
  required String name,

  /// [account] is the owner of the [Archive] imported.
  required Account account,
  required String formatId,

  /// [extra] is a map of additional properties.
  @JsonExtra() @Default({}) Map<String, dynamic> extra,
}) = _Archive;