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 a instance form Json string.
Properties
-
getter/setter pair
- 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 - Test the 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