PlanningCenterApiFile class
This class represents a PCO File Object
- Application: NONE
- Create Endpoint: https://api.planningcenteronline.com/people/v2/note_categories
Attributes (and permissions)
id
(ro) -> PCO:id
sourceIp
(ro) -> PCO:source_ip
md5
(ro) -> PCO:md5
contentType
(ro) -> PCO:content_type
fileSize
(ro) -> PCO:file_size
name
(ro) -> PCO:name
expiresAt
(ro) -> PCO:expires_at
Raw Data Object Example
{
"data": [
{
"type": "File",
"id": "us1-16207df7-b6cc-4abe-ca1a-306c6f7e423d",
"attributes": {
"source_ip": "70.128.100.145",
"md5": "e178604e5083cc23782f34650a49b025",
"content_type": "image/png",
"file_size": 48341,
"name": "file.png",
"expires_at": "2016-05-23T23:13:32Z"
}
}
]
}
- Inheritance
-
- Object
- PlanningCenterApiData
- PlanningCenterApiFile
Constructors
Properties
-
asFullMap
→ Map<
String, dynamic> -
no setterinherited
-
asFullMapWithData
→ Map<
String, dynamic> -
no setterinherited
-
asMap
→ Map<
String, dynamic> -
no setterinherited
-
asMapWithData
→ Map<
String, dynamic> -
no setterinherited
-
attributes
→ Map<
String, dynamic> -
finalinherited
- contentType ↔ String
-
getter/setter pair
- expiresAt ↔ DateTime
-
getter/setter pair
- fileSize ↔ int
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
getter/setter pairinherited
-
links
→ Map<
String, dynamic> -
finalinherited
- md5 ↔ String
-
getter/setter pair
- name ↔ String
-
getter/setter pair
-
relationships
→ Map<
String, dynamic> -
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceIp ↔ String
-
getter/setter pair
- type ↔ String
-
getter/setter pairinherited
Methods
-
fromJson(
Map data) → void -
get(
String key) → dynamic -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
String key, dynamic val) → void -
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
upload(
String filename) → Future< PlanningCenterApiResponse< PlanningCenterApiFile> > -
Will attempt to upload a file.
If the upload is successful, the
items
in thePlanningCenterApiResponse
will contain aPlanningCenterApiFile
with its fields (likeid
) set.
Constants
- kContentType → const String
- kCreatePathTemplate → const String
- kDefaultPathTemplate → const String
- kExpiresAt → const String
- kFileSize → const String
- kMd5 → const String
- kName → const String
- kSourceIp → const String
- kTypeId → const String
- kTypeString → const String