DatabaseSnapshot class abstract
A point-in-time snapshot (backup) of a database.
- Implemented types
Constructors
Properties
- createdAt ↔ DateTime
-
When the snapshot was created.
getter/setter pair
- diffSizeBytes ↔ int?
-
Incremental storage size in bytes since the previous scheduled snapshot,
when billed on incremental (diff) usage. Null otherwise.
getter/setter pair
- expiresAt ↔ DateTime?
-
When the snapshot will be automatically deleted, if a retention was set.
getter/setter pair
- fullSizeBytes ↔ int?
-
Full logical size of the snapshot in bytes. Null when not yet calculated
or the snapshot is not billed.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String
-
The provider snapshot ID.
getter/setter pair
- manual ↔ bool
-
Whether the snapshot was created manually (true) or by an automated
backup schedule (false).
getter/setter pair
- name ↔ String
-
The snapshot name.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? id, String? name, DateTime? createdAt, DateTime? expiresAt, bool? manual, int? fullSizeBytes, int? diffSizeBytes}) → DatabaseSnapshot - Returns a shallow copy of this DatabaseSnapshot with some or all fields replaced by the given arguments.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Returns a serialized JSON structure of the model which also includes
fields used by the database.
override
-
toJsonForProtocol(
) → Map< String, dynamic> -
Returns a JSON structure of the model, optimized for Protocol communication.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited