toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.a1 != null) {
    json[r'a1'] = this.a1;
  } else {
    json[r'a1'] = null;
  }
  if (this.algorithm != null) {
    json[r'algorithm'] = this.algorithm;
  } else {
    json[r'algorithm'] = null;
  }
  if (this.charset != null) {
    json[r'charset'] = this.charset;
  } else {
    json[r'charset'] = null;
  }
  if (this.cnonce != null) {
    json[r'cnonce'] = this.cnonce;
  } else {
    json[r'cnonce'] = null;
  }
  json[r'domain'] = this.domain;
  if (this.method != null) {
    json[r'method'] = this.method;
  } else {
    json[r'method'] = null;
  }
  if (this.nc != null) {
    json[r'nc'] = this.nc;
  } else {
    json[r'nc'] = null;
  }
  if (this.nonce != null) {
    json[r'nonce'] = this.nonce;
  } else {
    json[r'nonce'] = null;
  }
  if (this.opaque != null) {
    json[r'opaque'] = this.opaque;
  } else {
    json[r'opaque'] = null;
  }
  json[r'qop'] = this.qop;
  if (this.realm != null) {
    json[r'realm'] = this.realm;
  } else {
    json[r'realm'] = null;
  }
  if (this.response != null) {
    json[r'response'] = this.response;
  } else {
    json[r'response'] = null;
  }
  if (this.stale != null) {
    json[r'stale'] = this.stale;
  } else {
    json[r'stale'] = null;
  }
  if (this.uri != null) {
    json[r'uri'] = this.uri;
  } else {
    json[r'uri'] = null;
  }
  if (this.userhash != null) {
    json[r'userhash'] = this.userhash;
  } else {
    json[r'userhash'] = null;
  }
  if (this.username != null) {
    json[r'username'] = this.username;
  } else {
    json[r'username'] = null;
  }
  return json;
}