SerializableCookie class
This class is a wrapper for Cookie
class.
Because the Cookie
class doesn't support Json serialization,
for the sake of persistence, we use this class instead of it.
Constructors
- SerializableCookie(Cookie cookie)
- SerializableCookie.fromJson(String value)
-
Create an instance from JSON string.
factory
Properties
-
final
- createTimeStamp ↔ int
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
isExpired(
) → bool - Tells whether this cookie is expired.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String - Serialize the JSON string.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited