toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.objectName != null) {
    json[r'objectName'] = this.objectName;
  } else {
    json[r'objectName'] = null;
  }
  if (this.objectIndex != null) {
    json[r'objectIndex'] = this.objectIndex;
  } else {
    json[r'objectIndex'] = null;
  }
  if (this.propertyPath != null) {
    json[r'propertyPath'] = this.propertyPath;
  } else {
    json[r'propertyPath'] = null;
  }
  if (this.invalidValue != null) {
    json[r'invalidValue'] = this.invalidValue;
  } else {
    json[r'invalidValue'] = null;
  }
  if (this.code != null) {
    json[r'code'] = this.code;
  } else {
    json[r'code'] = null;
  }
    json[r'details'] = this.details;
  if (this.message != null) {
    json[r'message'] = this.message;
  } else {
    json[r'message'] = null;
  }
  return json;
}