PcoCheckInsOrganization class
This class represents a PCO CheckIns Organization Object
- Application: check-ins
- Id: organization
- Type: Organization
- ApiVersion: 2019-07-17
- Is Deprecated: false
- Is Collection Only: false
- Default Endpoint: https://api.planningcenteronline.com/check-ins/v2
- Create Endpoint: NONE
Instantiation
- This object cannot be created through the API.
- Instantiate from existing
JSON
data using thePcoCheckInsOrganization.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
An organization which has people and events. This contains its date format & time zone preferences.
Attributes (and permissions)
id
(ro) -> PCO:id
dateFormatPattern
(ro) -> PCO:date_format_pattern
timeZoneOlson
(ro) -> PCO:time_zone_olson
name
(ro) -> PCO:name
dailyCheckIns
(ro) -> PCO:daily_check_ins
timeZone
(ro) -> PCO:time_zone
avatarUrl
(ro) -> PCO:avatar_url
createdAt
(ro) -> PCO:created_at
updatedAt
(ro) -> PCO:updated_at
Edges and Actions
Outbound Edges:
checkin-organization-check_ins
: https://api.planningcenteronline.com/check-ins/v2/check_inseventtime-organization-event_times
: https://api.planningcenteronline.com/check-ins/v2/event_timesevent-organization-events
: https://api.planningcenteronline.com/check-ins/v2/eventsheadcount-organization-headcounts
: https://api.planningcenteronline.com/check-ins/v2/headcountslabel-organization-labels
: https://api.planningcenteronline.com/check-ins/v2/labelsoption-organization-options
: https://api.planningcenteronline.com/check-ins/v2/optionspass-organization-passes
: https://api.planningcenteronline.com/check-ins/v2/passesperson-organization-people
: https://api.planningcenteronline.com/check-ins/v2/peoplestation-organization-stations
: https://api.planningcenteronline.com/check-ins/v2/stationstheme-organization-themes
: https://api.planningcenteronline.com/check-ins/v2/themes
Inbound Edges:
organization-person-organization
: https://api.planningcenteronline.com/check-ins/v2/people/1/organization
Actions:
build_attendance_chart
: https://api.planningcenteronline.com/check-ins/v2build_check_in_times_for_prepared_check_in
: https://api.planningcenteronline.com/check-ins/v2build_recommended_check_in_times
: https://api.planningcenteronline.com/check-ins/v2bulk_check_in
: https://api.planningcenteronline.com/check-ins/v2
Raw Data Object Example
{
"type": "Organization",
"id": "1",
"attributes": {
"date_format_pattern": "string",
"time_zone_olson": "string",
"name": "string",
"daily_check_ins": 1,
"time_zone": "string",
"avatar_url": "string",
"created_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z"
},
"relationships": {}
}
- Inheritance
-
- Object
- PcoResource
- PcoCheckInsOrganization
Constructors
-
PcoCheckInsOrganization({String? id, String? dateFormatPattern, String? timeZoneOlson, String? name, int? dailyCheckIns, String? timeZone, String? avatarUrl, DateTime? createdAt, DateTime? updatedAt, Map<
String, List< ? withRelationships, List<PcoResource> >PcoResource> ? withIncluded}) -
Create a new PcoCheckInsOrganization object. This object cannot be created with the API
factory
- PcoCheckInsOrganization.empty()
- Create an empty instance of this class. This is only useful when an endpoint requires related or included data.
-
PcoCheckInsOrganization.fromJson(Map<
String, dynamic> data, {List<Map< ? withIncluded})String, dynamic> >
Properties
- api → PlanningCenter
-
planning center resources must be tied to an api
no setterinherited
- apiEndpoint → String
-
no setterinherited
- 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
no setteroverride
- apiVersion → String
-
child classes can override these getters which will allow
methods in this class to see static variables from child classes
no setteroverride
-
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
no setterinherited
- avatarUrl → String
-
no setter
- canCreate → bool
-
no setteroverride
- canDestroy → bool
-
no setteroverride
- canUpdate → bool
-
no setteroverride
-
createAllowed
→ List<
String> -
no setteroverride
- createdAt → DateTime
-
no setterinherited
- createPathTemplate → String
-
no setteroverride
- dailyCheckIns → int
-
no setter
- dateFormatPattern → String
-
no setter
- defaultPathTemplate → String
-
no setteroverride
- fetched ↔ bool
-
indicate whether an item is full or partial
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
no setterinherited
-
included
→ List<
PcoResource> -
contains included items parsed into objects
no setterinherited
-
links
→ ReadOnlyMapView<
String, dynamic> -
contains the links data returned by the api if present
no setterinherited
- name → String
-
no setter
- needsSave → bool
-
no setterinherited
- pcoApplication ↔ String
-
latefinalinherited
-
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
no setterinherited
- resourceType ↔ String
-
all planning center resources must have a
type
latefinalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slug → String
-
no setterinherited
- timeZone → String
-
no setter
- timeZoneOlson → String
-
no setter
-
updateAllowed
→ List<
String> -
no setteroverride
- updatedAt → DateTime
-
no setterinherited
Methods
-
buildAttendanceChart(
Object data) → Future< PlanningCenterApiResponse< PlanningCenterApiData> > -
ACTION:
build_attendance_chart
-
buildCheckInTimesForPreparedCheckIn(
Object data) → Future< PlanningCenterApiResponse< PlanningCenterApiData> > -
ACTION:
build_check_in_times_for_prepared_check_in
-
buildRecommendedCheckInTimes(
Object data) → Future< PlanningCenterApiResponse< PlanningCenterApiData> > -
ACTION:
build_recommended_check_in_times
-
bulkCheckIn(
Object data) → Future< PlanningCenterApiResponse< PlanningCenterApiData> > -
ACTION:
bulk_check_in
-
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 -
getCheckIns(
{PcoCheckInsCheckInQuery? query}) → Future< PcoCollection< PcoCheckInsCheckIn> > -
Will get a collection of PcoCheckInsCheckIn objects (expecting many)
using a path like this:
https://api.planningcenteronline.com/check-ins/v2/check_ins
-
getEvents(
{PcoCheckInsEventQuery? query}) → Future< PcoCollection< PcoCheckInsEvent> > -
Will get a collection of PcoCheckInsEvent objects (expecting many)
using a path like this:
https://api.planningcenteronline.com/check-ins/v2/events
-
getEventTimes(
{PcoCheckInsEventTimeQuery? query}) → Future< PcoCollection< PcoCheckInsEventTime> > -
Will get a collection of PcoCheckInsEventTime objects (expecting many)
using a path like this:
https://api.planningcenteronline.com/check-ins/v2/event_times
-
getHeadcounts(
{PcoCheckInsHeadcountQuery? query}) → Future< PcoCollection< PcoCheckInsHeadcount> > -
Will get a collection of PcoCheckInsHeadcount objects (expecting many)
using a path like this:
https://api.planningcenteronline.com/check-ins/v2/headcounts
-
getLabels(
{PcoCheckInsLabelQuery? query}) → Future< PcoCollection< PcoCheckInsLabel> > -
Will get a collection of PcoCheckInsLabel objects (expecting many)
using a path like this:
https://api.planningcenteronline.com/check-ins/v2/labels
-
getOptions(
{PcoCheckInsOptionQuery? query}) → Future< PcoCollection< PcoCheckInsOption> > -
Will get a collection of PcoCheckInsOption objects (expecting many)
using a path like this:
https://api.planningcenteronline.com/check-ins/v2/options
-
getPasses(
{PcoCheckInsPassQuery? query}) → Future< PcoCollection< PcoCheckInsPass> > -
Will get a collection of PcoCheckInsPass objects (expecting many)
using a path like this:
https://api.planningcenteronline.com/check-ins/v2/passes
-
getPeople(
{PcoCheckInsPersonQuery? query}) → Future< PcoCollection< PcoCheckInsPerson> > -
Will get a collection of PcoCheckInsPerson objects (expecting many)
using a path like this:
https://api.planningcenteronline.com/check-ins/v2/people
-
getStations(
{PcoCheckInsStationQuery? query}) → Future< PcoCollection< PcoCheckInsStation> > -
Will get a collection of PcoCheckInsStation objects (expecting many)
using a path like this:
https://api.planningcenteronline.com/check-ins/v2/stations
-
getThemes(
{PcoCheckInsThemeQuery? query}) → Future< PcoCollection< PcoCheckInsTheme> > -
Will get a collection of PcoCheckInsTheme objects (expecting many)
using a path like this:
https://api.planningcenteronline.com/check-ins/v2/themes
-
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 nonexistent 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
no setter
-
canOrderBy
→ List<
String> -
possible orderings with parameter ?order=
no setter
-
canQuery
→ List<
String> -
possible queries using parameters like ?where
key
=value or ?wheregt|lt
=valueno setter
Static Methods
-
getAllFromPerson(
String personId, {String? id, PcoCheckInsOrganizationQuery? query}) → Future< PcoCollection< PcoCheckInsOrganization> > -
Will get a
PcoCollection
containing ALL PcoCheckInsOrganization objects (expecting many) using a path like this:/check-ins/v2/people/$personId/organization
-
getFromPerson(
String personId, {String? id, PcoCheckInsOrganizationQuery? query, bool getAll = false}) → Future< PcoCollection< PcoCheckInsOrganization> > -
Will get a
PcoCollection
of PcoCheckInsOrganization objects (expecting many) using a path like this:/check-ins/v2/people/$personId/organization
-
getSingleFromPerson(
String personId, String id, {PcoCheckInsOrganizationQuery? query}) → Future< PcoCheckInsOrganization?> -
Will get a single
PcoCheckInsOrganization
object using a path like this:/check-ins/v2/people/$personId/organization/[id]
Constants
- kApiVersion → const String
- kAvatarUrl → const String
- kCreatedAt → const String
- kCreatePathTemplate → const String
- kDailyCheckIns → const String
- kDateFormatPattern → const String
- kDefaultPathTemplate → const String
- kId → const String
- kName → const String
- kPcoApplication → const String
- kTimeZone → const String
- kTimeZoneOlson → const String
- kTypeId → const String
- kTypeString → const String
- kUpdatedAt → const String