ReportResp class

Constructors

ReportResp({int? accepted, bool? stored})
Returns a new ReportResp instance.

Properties

accepted ↔ int?
Accepted is how many samples passed validation. Every one of them was accepted, or the whole report was refused — there is no partial success.
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
stored ↔ bool?
Stored is whether the warehouse actually persisted them. False means the datastore was unavailable and the poll of history was lost; the request still succeeded, so a device retries without being blocked.
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) → ReportResp?
Returns a new ReportResp instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ReportResp>
mapFromJson(dynamic json) → Map<String, ReportResp>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ReportResp>>

Constants

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