toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var elementErrors = this.elementErrors;
  var failedElementNumber = this.failedElementNumber;
  var status = this.status;

  final json = <String, Object?>{};
  if (elementErrors != null) {
    json[r'elementErrors'] = elementErrors.toJson();
  }
  if (failedElementNumber != null) {
    json[r'failedElementNumber'] = failedElementNumber;
  }
  if (status != null) {
    json[r'status'] = status;
  }
  return json;
}