toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'status'] = this.status;
    json[r'reason'] = this.reason;
    json[r'code'] = this.code;
  if (this.secondaryCode != null) {
    json[r'secondaryCode'] = this.secondaryCode;
  } else {
    json[r'secondaryCode'] = null;
  }
  if (this.bannedUntil != null) {
    json[r'bannedUntil'] = this.bannedUntil;
  } else {
    json[r'bannedUntil'] = null;
  }
  if (this.maxCharacterLength != null) {
    json[r'maxCharacterLength'] = this.maxCharacterLength;
  } else {
    json[r'maxCharacterLength'] = null;
  }
  if (this.translatedError != null) {
    json[r'translatedError'] = this.translatedError;
  } else {
    json[r'translatedError'] = null;
  }
  if (this.customConfig != null) {
    json[r'customConfig'] = this.customConfig;
  } else {
    json[r'customConfig'] = null;
  }
  return json;
}