ArchiveFormat constructor Null safety

const ArchiveFormat(
  1. {required String id,
  2. required DateTime created,
  3. required DateTime updated,
  4. required App app,
  5. @JsonVersion() required Version version,
  6. @JsonVersionConstraint() required VersionConstraint constraint,
  7. required ArchiveFileFormat format,
  8. required List<Mapping> mappings,
  9. @JsonExtra() @Default({}) Map<String, dynamic> extra}
)

ArchiveFormat description

Implementation

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

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

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

  /// [app] is the [App] the [ArchiveFormat] is for.
  required App app,

  /// [version] is the revision version of the [ArchiveFormat].
  /// See [Version] from pub_semver for more information.
  @JsonVersion() required Version version,

  /// [constraint] is the constraint version of the [App].
  /// See [VersionConstraint] from pub_semver for more information.
  ///
  /// [VersionConstraint.compatibleWith] is used to define the minimum version.
  @JsonVersionConstraint() required VersionConstraint constraint,

  /// [format] is the format of the [ArchiveFormat].
  required ArchiveFileFormat format,

  /// [entries] is a list of [ArchiveFormatEntry]s.
  required List<Mapping> mappings,

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