PlanningCenterApiResponse<T extends PlanningCenterApiData> class
encapsulates the JSON:API response...
the rawData
field holds contents of the data field in the response
but is always coerced to a list even if it was an object in the
original response
- Implementers
Constructors
-
PlanningCenterApiResponse(String application, PlanningCenterApiQuery query, Uri requestUri, String requestBody, int statusCode, String responseBody, List<
T> data, PlanningCenterApiMeta meta, Map<String, dynamic> links, List<Map< included)String, dynamic> > - PlanningCenterApiResponse.fromResponse(String application, PlanningCenterApiQuery query, String requestBody, Response response)
-
factory
Properties
- application → String
-
final
-
data
→ List<
T> -
final
- error → PlanningCenterApiError?
-
no setter
- errorMessage → String
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
included
→ List<
Map< String, dynamic> > -
final
- isError → bool
-
no setter
-
links
→ Map<
String, dynamic> -
final
- meta → PlanningCenterApiMeta
-
final
- query → PlanningCenterApiQuery
-
final
- requestBody → String
-
final
- requestUri → Uri
-
final
- responseBody → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{bool includeRawResponseBody = true}) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
-
withData<
F extends PlanningCenterApiData> (List< F> data) → PlanningCenterApiResponse<F> -
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.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited