ArchiveFormat constructor Null safety
- {required String id,
- required DateTime created,
- required DateTime updated,
- required App app,
- @JsonVersion() required Version version,
- @JsonVersionConstraint() required VersionConstraint constraint,
- required ArchiveFileFormat format,
- required List<
Mapping> mappings, - @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;