Session class

Price session.

cf. SessionBase in https://prices.openfoodfacts.org/api/docs

Inheritance

Constructors

Session()
Session.fromJson(Map<String, dynamic> json)
factory

Properties

created ↔ DateTime
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
lastUsed ↔ DateTime?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
userId ↔ String
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toData() → Map<String, String>
inherited
toJson() → Map<String, dynamic>
override
toString() → String
A string representation of this object.
inherited
toValueString() → String
Returns all values as a String separated by a hyphen value1 - value2 - value3
inherited

Operators

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

Constants

invalidActionWithAuthMessage → const String
Error message when we try an edit operation with a wrong authentication.
invalidActionWithAuthStatusCode → const int
Status Code when we try an edit operation with a wrong authentication.
invalidAuthMessage → const String
Error message when the authentication fails.
invalidAuthStatusCode → const int
Status Code when the authentication fails.