PcoCalendarResource class Null safety
This class represents a PCO Calendar Resource Object
- Application: calendar
- Id: resource
- Type: Resource
- ApiVersion: 2021-07-20
- Is Deprecated: false
- Is Collection Only: false
- Default Endpoint: https://api.planningcenteronline.com/calendar/v2/resources
- Create Endpoint: NONE
Instantiation
- Create a new instance using the
PcoCalendarResource()
constructor - Instantiate from existing
JSON
data using thePcoCalendarResource.fromJson()
constructor. - Load an instance from the API using one of the static methods defined on this class.
Usage
- Fields exposed by the API are readable through getter methods.
- Fields writable by the API are exposed through setter methods.
- Original
json
data is exposed through the read-onlyattributes
map. - Additional data is available through the read-only
links
andrelationships
maps. - Available relationships / includes are exposed through typed getters.
Description
A room or resource that can be requested for use as part of an event.
Attributes (and permissions)
id
(ro) -> PCO:id
createdAt
(ro) -> PCO:created_at
kind
(ro) -> PCO:kind
name
(rw) -> PCO:name
serialNumber
(ro) -> PCO:serial_number
updatedAt
(ro) -> PCO:updated_at
description
(ro) -> PCO:description
expiresAt
(ro) -> PCO:expires_at
homeLocation
(rw) -> PCO:home_location
image
(ro) -> PCO:image
quantity
(rw) -> PCO:quantity
pathName
(ro) -> PCO:path_name
Edges and Actions
Outbound Edges:
conflict-resource-conflicts
: https://api.planningcenteronline.com/calendar/v2/resources/1/conflictseventresourcerequest-resource-event_resource_requests
: https://api.planningcenteronline.com/calendar/v2/resources/1/event_resource_requestsrequiredapproval-resource-required_approvals
: https://api.planningcenteronline.com/calendar/v2/resources/1/required_approvalsresourceapprovalgroup-resource-resource_approval_groups
: https://api.planningcenteronline.com/calendar/v2/resources/1/resource_approval_groupsresourcebooking-resource-resource_bookings
: https://api.planningcenteronline.com/calendar/v2/resources/1/resource_bookingsresourcefolder-resource-resource_folder
: https://api.planningcenteronline.com/calendar/v2/resources/1/resource_folderresourcequestion-resource-resource_questions
: https://api.planningcenteronline.com/calendar/v2/resources/1/resource_questionsroomsetup-resource-room_setups
: https://api.planningcenteronline.com/calendar/v2/resources/1/room_setups
Inbound Edges:
resource-conflict-resource
: https://api.planningcenteronline.com/calendar/v2/conflicts/1/resourceresource-eventresourcerequest-resource
: https://api.planningcenteronline.com/calendar/v2/event_resource_requests/1/resourceresource-organization-resources
: https://api.planningcenteronline.com/calendar/v2/resourcesresource-requiredapproval-resource
: https://api.planningcenteronline.com/calendar/v2/resource_approval_groups/1/required_approvals/1/resourceresource-resourceapprovalgroup-resources
: https://api.planningcenteronline.com/calendar/v2/resource_approval_groups/1/resourcesresource-resourcebooking-resource
: https://api.planningcenteronline.com/calendar/v2/resource_bookings/1/resourceresource-resourcefolder-resources
: https://api.planningcenteronline.com/calendar/v2/resource_folders/1/resourcesresource-resourcesuggestion-resource
: https://api.planningcenteronline.com/calendar/v2/room_setups/1/resource_suggestions/1/resourceresource-roomsetup-containing_resource
: https://api.planningcenteronline.com/calendar/v2/room_setups/1/containing_resource
Actions: NONE
Raw Data Object Example
{
"type": "Resource",
"id": "1",
"attributes": {
"created_at": "2000-01-01T12:00:00Z",
"kind": "string",
"name": "string",
"serial_number": "string",
"updated_at": "2000-01-01T12:00:00Z",
"description": "string",
"expires_at": "2000-01-01T12:00:00Z",
"home_location": "string",
"image": "string",
"quantity": 1,
"path_name": "string"
},
"relationships": {}
}
- Inheritance
-
- Object
- PcoResource
- PcoCalendarResource
Constructors
-
PcoCalendarResource({String? id, DateTime? createdAt, String? kind, String? name, String? serialNumber, DateTime? updatedAt, String? description, DateTime? expiresAt, String? homeLocation, String? image, int? quantity, String? pathName, Map<
String, List< ? withRelationships, List<PcoResource> >PcoResource> ? withIncluded}) -
Create a new PcoCalendarResource object. This object cannot be created with the API
factory
- PcoCalendarResource.empty()
- Create an empty instance of this class. This is only useful when an endpoint requires related or included data.
-
PcoCalendarResource.fromJson(Map<
String, dynamic> data, {List<Map< ? withIncluded})String, dynamic> >
Properties
- api → PlanningCenter
-
planning center resources must be tied to an api
read-onlyinherited
- apiEndpoint → String
-
read-onlyinherited
- apiPath → String
-
PcoResources include their own path as a link object
but this might be null if we haven't created/fetched the object yet
Child classes should redefine this getter to allow for manual path overrides
read-onlyoverride
- apiVersion → String
-
child classes can override these getters which will allow
methods in this class to see static variables from child classes
read-onlyoverride
-
attributes
→ ReadOnlyMapView<
String, dynamic> -
contains the underlying attributes returned by the api
and allows a user to access arbitrary data in the attributes by actual api name
read-onlyinherited
- canCreate → bool
-
read-onlyoverride
- canDestroy → bool
-
read-onlyoverride
- canUpdate → bool
-
read-onlyoverride
-
createAllowed
→ List<
String> -
read-onlyoverride
- createdAt → DateTime
-
read-onlyinherited
- createPathTemplate → String
-
read-onlyoverride
- defaultPathTemplate → String
-
read-onlyoverride
- description → String
-
read-only
- expiresAt → DateTime
-
read-only
- fetched ↔ bool
-
indicate whether an item is full or partial
read / writeinherited
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- homeLocation ↔ String
-
Where the resource is normally kept
read / write
- id → String?
-
read-onlyinherited
- image → String
-
read-only
-
included
→ List<
PcoResource> -
contains included items parsed into objects
read-onlyinherited
-
includedResourceApprovalGroups
→ List<
PcoCalendarResourceApprovalGroup> -
read-only
- includedResourceFolder → PcoCalendarResourceFolder?
-
read-only
-
includedResourceQuestions
→ List<
PcoCalendarResourceQuestion> -
read-only
-
includedRoomSetups
→ List<
PcoCalendarRoomSetup> -
read-only
- kind → String
-
read-only
-
links
→ ReadOnlyMapView<
String, dynamic> -
contains the links data returned by the api if present
read-onlyinherited
- name ↔ String
-
The name of the room or resource
read / write
- needsSave → bool
-
read-onlyinherited
- pathName → String
-
read-only
- pcoApplication ↔ String
-
latefinalinherited
- quantity ↔ int
-
The quantity of the resource
read / write
-
relationships
→ ReadOnlyMapView<
String, List< PcoResource> > -
contains relationships parsed into objects
even though the api sends relationship objects as Maps or Lists
we always put them into lists for consistency
read-onlyinherited
- resourceType ↔ String
-
all planning center resources must have a
type
latefinalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- serialNumber → String
-
read-only
- slug → String
-
read-onlyinherited
-
updateAllowed
→ List<
String> -
read-onlyoverride
- updatedAt → DateTime
-
read-onlyinherited
Methods
-
coerceDouble(
dynamic a) → double -
inherited
-
coerceInt(
dynamic a) → int -
inherited
-
delete(
) → Future< PlanningCenterApiResponse< PlanningCenterApiData> > -
inherited
-
filteredAttributes(
List< String> allowedKeys) → Map<String, dynamic> -
inherited
-
fromJson(
Map< String, dynamic> data, {List<Map< ? withIncluded}) → dynamicString, dynamic> > -
Takes a full JSON:API Response Object (the contents of a "data" field)
will clear and update id, apiPath, attributes and
_relationships
inherited -
getConflicts(
{PcoCalendarConflictQuery? query}) → Future< PcoCollection< PcoCalendarConflict> > -
Will get a collection of PcoCalendarConflict objects (expecting many)
using a path like this:
https://api.planningcenteronline.com/calendar/v2/resources/1/conflicts
-
getEventResourceRequests(
{PcoCalendarEventResourceRequestQuery? query}) → Future< PcoCollection< PcoCalendarEventResourceRequest> > -
Will get a collection of PcoCalendarEventResourceRequest objects (expecting many)
using a path like this:
https://api.planningcenteronline.com/calendar/v2/resources/1/event_resource_requests
-
getRequiredApprovals(
{PcoCalendarRequiredApprovalQuery? query}) → Future< PcoCollection< PcoCalendarRequiredApproval> > -
Will get a collection of PcoCalendarRequiredApproval objects (expecting many)
using a path like this:
https://api.planningcenteronline.com/calendar/v2/resources/1/required_approvals
-
getResourceApprovalGroups(
{PcoCalendarResourceApprovalGroupQuery? query}) → Future< PcoCollection< PcoCalendarResourceApprovalGroup> > -
Will get a collection of PcoCalendarResourceApprovalGroup objects (expecting many)
using a path like this:
https://api.planningcenteronline.com/calendar/v2/resources/1/resource_approval_groups
-
getResourceBookings(
{PcoCalendarResourceBookingQuery? query}) → Future< PcoCollection< PcoCalendarResourceBooking> > -
Will get a collection of PcoCalendarResourceBooking objects (expecting many)
using a path like this:
https://api.planningcenteronline.com/calendar/v2/resources/1/resource_bookings
-
getResourceFolder(
{PcoCalendarResourceFolderQuery? query}) → Future< PcoCollection< PcoCalendarResourceFolder> > -
Will get a collection of PcoCalendarResourceFolder objects (expecting many)
using a path like this:
https://api.planningcenteronline.com/calendar/v2/resources/1/resource_folder
-
getResourceQuestions(
{PcoCalendarResourceQuestionQuery? query}) → Future< PcoCollection< PcoCalendarResourceQuestion> > -
Will get a collection of PcoCalendarResourceQuestion objects (expecting many)
using a path like this:
https://api.planningcenteronline.com/calendar/v2/resources/1/resource_questions
-
getRoomSetups(
{PcoCalendarRoomSetupQuery? query}) → Future< PcoCollection< PcoCalendarRoomSetup> > -
Will get a collection of PcoCalendarRoomSetup objects (expecting many)
using a path like this:
https://api.planningcenteronline.com/calendar/v2/resources/1/room_setups
-
handleIncludes(
List< Map< included) → voidString, dynamic> > -
This function populates the relationships with typed resource objects
based on the data in the
included
map of the json.inherited -
handleItem(
Map< String, dynamic> data) → PcoResource? -
inherited
-
handleRelationships(
Map< String, dynamic> items, [List<Map< included = const []]) → Map<String, dynamic> >String, List< PcoResource> > -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
save(
{Map< String, PcoResource> ? withRelated, List<PcoResource> ? withIncluded}) → Future<PlanningCenterApiResponse< PlanningCenterApiData> > -
Many Planning Center endpoints allow or require additional relationships and/or included items
to be sent with a create/update operation. Since these cannot always be determined by the automatic
code generation, they may be included as arguments to the save operation.
inherited
-
toCreateResource(
) → Map< String, dynamic> -
create the attributes Map for this object without the
id
field using only the attributes allowed in create (post) operationsinherited -
toDataMap(
{Map< String, PcoResource> ? withRelated, List<PcoResource> ? withIncluded}) → Map<String, dynamic> -
create a json-api Map for this object automatically selecting create or update
based on the existence of the
id
field. Will result in something like this:inherited -
toIdResource(
) → Map< String, dynamic> -
returns the simplest representation of this resource with
only the type and the id:
inherited
-
toJson(
{dynamic includeAttributes = true, dynamic includeRelationships = false}) → Map< String, dynamic> -
Some api requests only want the type and id of an object.
In those cases, set
includeAttributes
to false or call toIdResource instead.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
toUpdateResource(
) → Map< String, dynamic> -
create the attributes Map for this object using only
the attributes allowed in update (patch) operations
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
canInclude
→ List<
String> -
possible includes with parameter ?include=a,b
read-only
-
canOrderBy
→ List<
String> -
possible orderings with parameter ?order=
read-only
-
canQuery
→ List<
String> -
possible queries using parameters like ?where
key
=value or ?wheregt|lt
=valueread-only
Static Methods
-
get(
{String? id, PcoCalendarResourceQuery? query, bool getAll = false, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCollection< PcoCalendarResource> > -
Will get a
PcoCollection
of PcoCalendarResource objects (expecting many) using a path like this:/calendar/v2/resources
-
getAll(
{String? id, PcoCalendarResourceQuery? query, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCollection< PcoCalendarResource> > -
Will get a
PcoCollection
containing ALL PcoCalendarResource objects (expecting many) using a path like this:/calendar/v2/resources
-
getAllContainingResourceFromRoomSetup(
String roomSetupId, {String? id, PcoCalendarResourceQuery? query, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCollection< PcoCalendarResource> > -
Will get a
PcoCollection
containing ALL PcoCalendarResource objects (expecting many) using a path like this:/calendar/v2/room_setups/$roomSetupId/containing_resource
-
getAllFromConflict(
String conflictId, {String? id, PcoCalendarResourceQuery? query, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCollection< PcoCalendarResource> > -
Will get a
PcoCollection
containing ALL PcoCalendarResource objects (expecting many) using a path like this:/calendar/v2/conflicts/$conflictId/resource
-
getAllFromEventResourceRequest(
String eventResourceRequestId, {String? id, PcoCalendarResourceQuery? query, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCollection< PcoCalendarResource> > -
Will get a
PcoCollection
containing ALL PcoCalendarResource objects (expecting many) using a path like this:/calendar/v2/event_resource_requests/$eventResourceRequestId/resource
-
getAllFromResourceApprovalGroup(
String resourceApprovalGroupId, {String? id, PcoCalendarResourceQuery? query, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCollection< PcoCalendarResource> > -
Will get a
PcoCollection
containing ALL PcoCalendarResource objects (expecting many) using a path like this:/calendar/v2/resource_approval_groups/$resourceApprovalGroupId/resources
-
getAllFromResourceApprovalGroupAndRequiredApproval(
String resourceApprovalGroupId, String requiredApprovalId, {String? id, PcoCalendarResourceQuery? query, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCollection< PcoCalendarResource> > -
Will get a
PcoCollection
containing ALL PcoCalendarResource objects (expecting many) using a path like this:/calendar/v2/resource_approval_groups/$resourceApprovalGroupId/required_approvals/$requiredApprovalId/resource
-
getAllFromResourceBooking(
String resourceBookingId, {String? id, PcoCalendarResourceQuery? query, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCollection< PcoCalendarResource> > -
Will get a
PcoCollection
containing ALL PcoCalendarResource objects (expecting many) using a path like this:/calendar/v2/resource_bookings/$resourceBookingId/resource
-
getAllFromResourceFolder(
String resourceFolderId, {String? id, PcoCalendarResourceQuery? query, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCollection< PcoCalendarResource> > -
Will get a
PcoCollection
containing ALL PcoCalendarResource objects (expecting many) using a path like this:/calendar/v2/resource_folders/$resourceFolderId/resources
-
getAllFromRoomSetupAndResourceSuggestion(
String roomSetupId, String resourceSuggestionId, {String? id, PcoCalendarResourceQuery? query, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCollection< PcoCalendarResource> > -
Will get a
PcoCollection
containing ALL PcoCalendarResource objects (expecting many) using a path like this:/calendar/v2/room_setups/$roomSetupId/resource_suggestions/$resourceSuggestionId/resource
-
getContainingResourceFromRoomSetup(
String roomSetupId, {String? id, PcoCalendarResourceQuery? query, bool getAll = false, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCollection< PcoCalendarResource> > -
Will get a
PcoCollection
of PcoCalendarResource objects (expecting many) using a path like this:/calendar/v2/room_setups/$roomSetupId/containing_resource
-
getFromConflict(
String conflictId, {String? id, PcoCalendarResourceQuery? query, bool getAll = false, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCollection< PcoCalendarResource> > -
Will get a
PcoCollection
of PcoCalendarResource objects (expecting many) using a path like this:/calendar/v2/conflicts/$conflictId/resource
-
getFromEventResourceRequest(
String eventResourceRequestId, {String? id, PcoCalendarResourceQuery? query, bool getAll = false, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCollection< PcoCalendarResource> > -
Will get a
PcoCollection
of PcoCalendarResource objects (expecting many) using a path like this:/calendar/v2/event_resource_requests/$eventResourceRequestId/resource
-
getFromResourceApprovalGroup(
String resourceApprovalGroupId, {String? id, PcoCalendarResourceQuery? query, bool getAll = false, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCollection< PcoCalendarResource> > -
Will get a
PcoCollection
of PcoCalendarResource objects (expecting many) using a path like this:/calendar/v2/resource_approval_groups/$resourceApprovalGroupId/resources
-
getFromResourceApprovalGroupAndRequiredApproval(
String resourceApprovalGroupId, String requiredApprovalId, {String? id, PcoCalendarResourceQuery? query, bool getAll = false, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCollection< PcoCalendarResource> > -
Will get a
PcoCollection
of PcoCalendarResource objects (expecting many) using a path like this:/calendar/v2/resource_approval_groups/$resourceApprovalGroupId/required_approvals/$requiredApprovalId/resource
-
getFromResourceBooking(
String resourceBookingId, {String? id, PcoCalendarResourceQuery? query, bool getAll = false, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCollection< PcoCalendarResource> > -
Will get a
PcoCollection
of PcoCalendarResource objects (expecting many) using a path like this:/calendar/v2/resource_bookings/$resourceBookingId/resource
-
getFromResourceFolder(
String resourceFolderId, {String? id, PcoCalendarResourceQuery? query, bool getAll = false, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCollection< PcoCalendarResource> > -
Will get a
PcoCollection
of PcoCalendarResource objects (expecting many) using a path like this:/calendar/v2/resource_folders/$resourceFolderId/resources
-
getFromRoomSetupAndResourceSuggestion(
String roomSetupId, String resourceSuggestionId, {String? id, PcoCalendarResourceQuery? query, bool getAll = false, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCollection< PcoCalendarResource> > -
Will get a
PcoCollection
of PcoCalendarResource objects (expecting many) using a path like this:/calendar/v2/room_setups/$roomSetupId/resource_suggestions/$resourceSuggestionId/resource
-
getSingle(
String id, {PcoCalendarResourceQuery? query, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCalendarResource?> -
Will get a single
PcoCalendarResource
object using a path like this:/calendar/v2/resources/[id]
-
getSingleContainingResourceFromRoomSetup(
String roomSetupId, String id, {PcoCalendarResourceQuery? query, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCalendarResource?> -
Will get a single
PcoCalendarResource
object using a path like this:/calendar/v2/room_setups/$roomSetupId/containing_resource/[id]
-
getSingleFromConflict(
String conflictId, String id, {PcoCalendarResourceQuery? query, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCalendarResource?> -
Will get a single
PcoCalendarResource
object using a path like this:/calendar/v2/conflicts/$conflictId/resource/[id]
-
getSingleFromEventResourceRequest(
String eventResourceRequestId, String id, {PcoCalendarResourceQuery? query, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCalendarResource?> -
Will get a single
PcoCalendarResource
object using a path like this:/calendar/v2/event_resource_requests/$eventResourceRequestId/resource/[id]
-
getSingleFromResourceApprovalGroup(
String resourceApprovalGroupId, String id, {PcoCalendarResourceQuery? query, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCalendarResource?> -
Will get a single
PcoCalendarResource
object using a path like this:/calendar/v2/resource_approval_groups/$resourceApprovalGroupId/resources/[id]
-
getSingleFromResourceApprovalGroupAndRequiredApproval(
String resourceApprovalGroupId, String requiredApprovalId, String id, {PcoCalendarResourceQuery? query, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCalendarResource?> -
Will get a single
PcoCalendarResource
object using a path like this:/calendar/v2/resource_approval_groups/$resourceApprovalGroupId/required_approvals/$requiredApprovalId/resource/[id]
-
getSingleFromResourceBooking(
String resourceBookingId, String id, {PcoCalendarResourceQuery? query, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCalendarResource?> -
Will get a single
PcoCalendarResource
object using a path like this:/calendar/v2/resource_bookings/$resourceBookingId/resource/[id]
-
getSingleFromResourceFolder(
String resourceFolderId, String id, {PcoCalendarResourceQuery? query, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCalendarResource?> -
Will get a single
PcoCalendarResource
object using a path like this:/calendar/v2/resource_folders/$resourceFolderId/resources/[id]
-
getSingleFromRoomSetupAndResourceSuggestion(
String roomSetupId, String resourceSuggestionId, String id, {PcoCalendarResourceQuery? query, bool includeAllRelated = false, bool includeResourceApprovalGroups = false, bool includeResourceFolder = false, bool includeResourceQuestions = false, bool includeRoomSetups = false}) → Future< PcoCalendarResource?> -
Will get a single
PcoCalendarResource
object using a path like this:/calendar/v2/room_setups/$roomSetupId/resource_suggestions/$resourceSuggestionId/resource/[id]
Constants
- kApiVersion → const String
-
'2021-07-20'
- kCreatedAt → const String
-
'created_at'
- kCreatePathTemplate → const String
-
'null'
- kDefaultPathTemplate → const String
-
'https://api.planningcenteronline.com/calendar/v2/resources'
- kDescription → const String
-
'description'
- kExpiresAt → const String
-
'expires_at'
- kHomeLocation → const String
-
'home_location'
- kId → const String
-
'id'
- kImage → const String
-
'image'
- kKind → const String
-
'kind'
- kName → const String
-
'name'
- kPathName → const String
-
'path_name'
- kPcoApplication → const String
-
'calendar'
- kQuantity → const String
-
'quantity'
- kSerialNumber → const String
-
'serial_number'
- kTypeId → const String
-
'resource'
- kTypeString → const String
-
'Resource'
- kUpdatedAt → const String
-
'updated_at'