withData<F extends PlanningCenterApiData> method
Cretes a clone of this object replacing the data field.
This is only really useful when you want to change the type of the underlying
data. Note: this might make data
lose similarity to the responseBody.
Implementation
PlanningCenterApiResponse<F> withData<F extends PlanningCenterApiData>(
List<F> data) {
return PlanningCenterApiResponse<F>(
application,
query,
requestUri,
requestBody,
statusCode,
responseBody,
data,
meta,
links,
included,
);
}