toMap method

Map<String, dynamic> toMap()

Converts instance to a map.

Implementation

Map<String, dynamic> toMap() {
  return {
    "domain": domain,
    "expiresDate": expiresDate,
    "isHttpOnly": isHttpOnly,
    "isSecure": isSecure,
    "isSessionOnly": isSessionOnly,
    "name": name,
    "path": path,
    "sameSite": sameSite?.toNativeValue(),
    "value": value,
  };
}