ImportDataResponse constructor

ImportDataResponse({
  1. Iterable<ImportDataError>? errors,
  2. ImportDataSuccess? success,
})

Implementation

factory ImportDataResponse({
  $core.Iterable<ImportDataError>? errors,
  ImportDataSuccess? success,
}) {
  final _result = create();
  if (errors != null) {
    _result.errors.addAll(errors);
  }
  if (success != null) {
    _result.success = success;
  }
  return _result;
}