PlanningCenterApiFile class Null safety
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> -
read-onlyinherited
-
asFullMapWithData
→ Map<
String, dynamic> -
read-onlyinherited
-
asMap
→ Map<
String, dynamic> -
read-onlyinherited
-
asMapWithData
→ Map<
String, dynamic> -
read-onlyinherited
-
attributes
→ Map<
String, dynamic> -
finalinherited
- contentType ↔ String
-
read / write
- expiresAt ↔ DateTime
-
read / write
- fileSize ↔ int
-
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- id ↔ String?
-
read / writeinherited
-
links
→ Map<
String, dynamic> -
finalinherited
- md5 ↔ String
-
read / write
- name ↔ String
-
read / write
-
relationships
→ Map<
String, dynamic> -
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- sourceIp ↔ String
-
read / write
- type ↔ String
-
read / writeinherited
Methods
-
fromJson(
Map data) → void -
get(
String key) → dynamic -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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
-
'content_type'
- kCreatePathTemplate → const String
-
'https://upload.planningcenteronline.com/v2/files'
- kDefaultPathTemplate → const String
-
'https://upload.planningcenteronline.com/v2/files'
- kExpiresAt → const String
-
'expires_at'
- kFileSize → const String
-
'file_size'
- kMd5 → const String
-
'md5'
- kName → const String
-
'name'
- kSourceIp → const String
-
'source_ip'
- kTypeId → const String
-
'file'
- kTypeString → const String
-
'File'