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;
}