toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  if (excludedQueryParameters.isNotDefault)
    'excludedQueryParameters': excludedQueryParameters,
  'includeHost': ?includeHost,
  'includeProtocol': ?includeProtocol,
  'includeQueryString': ?includeQueryString,
  if (includedCookieNames.isNotDefault)
    'includedCookieNames': includedCookieNames,
  if (includedHeaderNames.isNotDefault)
    'includedHeaderNames': includedHeaderNames,
  if (includedQueryParameters.isNotDefault)
    'includedQueryParameters': includedQueryParameters,
};