BatchResponse constructor

BatchResponse({
  1. int? failureCount,
  2. int? successCount,
  3. Iterable<SendResponse>? responses,
})

Implementation

factory BatchResponse({
  $core.int? failureCount,
  $core.int? successCount,
  $core.Iterable<SendResponse>? responses,
}) {
  final _result = create();
  if (failureCount != null) {
    _result.failureCount = failureCount;
  }
  if (successCount != null) {
    _result.successCount = successCount;
  }
  if (responses != null) {
    _result.responses.addAll(responses);
  }
  return _result;
}