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