BackupModel class Null safety

The backup control entity model.

This model keeps the state of a backup request for an asset identified by its fully qualified path. The signature is the RSA signature of the bytes sent to L0 storage using the author's private key. The timestamp is the DateTime that the asset was backed up in L0. If it is not set that means the backup was not done yet.

Constructors

BackupModel({required String path, Uint8List? signature, DateTime? timestamp})
Builds a BackupModel.
BackupModel.fromMap(Map<String, dynamic> map)
Builds a BackupModel from a map.

Properties

hashCode → int
The hash code for this object.
read-only, inherited
path ↔ String
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
signature ↔ Uint8List?
read / write
timestamp ↔ DateTime?
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Overrides toString() method for useful error messages
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited