of static method

SendResponse of({
  1. required int? success,
  2. required int? failures,
  3. List<ISendResponseItem>? responses,
})

Implementation

static SendResponse of(
    {required int? success,
    required int? failures,
    List<ISendResponseItem>? responses}) {
  final self =
      SendResponse(<String, dynamic>{}, mtype: SendResponseRef, update: true);
  if (success != null) self.success = success;
  if (failures != null) self.failures = failures;
  if (responses != null) self.responses = responses;
  return self;
}