copyWith method

NestedResponse copyWith({
  1. ErrorCollection? errorCollection,
  2. int? status,
  3. WarningCollection? warningCollection,
})

Implementation

NestedResponse copyWith(
    {ErrorCollection? errorCollection,
    int? status,
    WarningCollection? warningCollection}) {
  return NestedResponse(
    errorCollection: errorCollection ?? this.errorCollection,
    status: status ?? this.status,
    warningCollection: warningCollection ?? this.warningCollection,
  );
}