BucketWrite class

Constructors

BucketWrite({String? bucket, int? history, int? maxValue, int? ttl})
Returns a new BucketWrite instance.

Properties

bucket ↔ String?
Bucket is the bucket's name within the org, from the path: 1–64 of A-Za-z0-9_, no dash.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
history ↔ int?
History is how many revisions each key keeps, 1–64. 0 means 1.
getter/setter pair
maxValue ↔ int?
MaxValue caps one value's size in bytes. 0 or less means the server's ceiling.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
ttl ↔ int?
TTL expires entries after this many SECONDS. 0 means no expiry.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(dynamic value) → BucketWrite?
Returns a new BucketWrite instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<BucketWrite>
mapFromJson(dynamic json) → Map<String, BucketWrite>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<BucketWrite>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.