toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final map = <String, dynamic>{};
  map['path'] = path;
  map['expires'] = expires;
  map['size'] = size;
  map['secure'] = secure;
  map['session'] = session;
  if (partitionKeyOpaque != null) {
    map['partitionKeyOpaque'] = partitionKeyOpaque;
  }
  map['name'] = name;
  map['value'] = value;
  map['domain'] = domain;
  if (httpOnly != null) {
    map['httpOnly'] = httpOnly;
  }
  if (sameSite != null) {
    map['sameSite'] = sameSite;
  }
  if (priority != null) {
    map['priority'] = priority;
  }
  if (sourceScheme != null) {
    map['sourceScheme'] = sourceScheme;
  }
  if (partitionKey != null) {
    map['partitionKey'] = partitionKey?.toJson();
  }
  return map;
}