toJson method

Map<String, dynamic> toJson()

Implementation

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