replace<BodyType> method

MyResponse replace<BodyType>(
  1. {Response base,
  2. BodyType body}
)

Implementation

MyResponse replace<BodyType>({Response base, BodyType body}) =>
    MyResponse<BodyType>(base ?? this.base, body ?? this.body);