RetentionRule class

Constructors

RetentionRule({RetentionRuleTypeEnum? type = const RetentionRuleTypeEnum._('expire'), required int? everySeconds, int? shardGroupDurationSeconds})
Returns a new RetentionRule instance.

Properties

everySeconds int?
Duration in seconds for how long data will be kept in the database. 0 means infinite.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shardGroupDurationSeconds int?
Shard duration measured in seconds.
getter/setter pair
type RetentionRuleTypeEnum?
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) RetentionRule
Returns a new RetentionRule instance and imports
listFromJson(dynamic json, {bool? emptyIsNull, bool? growable}) List<RetentionRule>?
mapFromJson(dynamic json) Map<String, RetentionRule?>
mapListFromJson(dynamic json, {bool? emptyIsNull, bool? growable}) Map<String, List<RetentionRule?>?>