toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'name': name,
'value': value,
if (url != null) 'url': url,
if (domain != null) 'domain': domain,
if (path != null) 'path': path,
if (secure != null) 'secure': secure,
if (httpOnly != null) 'httpOnly': httpOnly,
if (sameSite != null) 'sameSite': sameSite!.toJson(),
if (expires != null) 'expires': expires!.toJson(),
if (priority != null) 'priority': priority!.toJson(),
if (sameParty != null) 'sameParty': sameParty,
if (sourceScheme != null) 'sourceScheme': sourceScheme!.toJson(),
if (sourcePort != null) 'sourcePort': sourcePort,
if (partitionKey != null) 'partitionKey': partitionKey,
};
}