DataUploadDraft class

DataUploadDraft is the response object when requesting direct_upload For instance: https://api.cloudflare.com/#cloudflare-images-create-authenticated-direct-upload-url-v2

Available Extensions
Annotations
  • @CopyWith(skipFields: true)
  • @JsonSerializable()

Constructors

DataUploadDraft({String? id, String? uploadURL, Watermark? watermark})
const
DataUploadDraft.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
Resource id.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uploadURL String
Url to upload resource without API key or token
final
watermark Watermark?
Only on video direct upload responses
final

Methods

fromJsonList(List? jsonList) List<DataUploadDraft>?
inherited
fromJsonMap(Map<String, dynamic>? json) DataUploadDraft?
fromJsonString(String? json) DataUploadDraft?
inherited
fromJsonStringList(String? jsonStringList) List<DataUploadDraft>?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toJsonMap() Map<String, dynamic>
inherited
toJsonString() String
inherited
toString() String
This is just to suggest children to implement a named constructor to support creating objects fromJson(...) and fromJsonString(...) as easy as T.build().fromJson(...) or T.build().fromJsonString(...)
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited