Attachment class
Model for Attachment
Constructors
- Attachment({required String name, required Uri url, required String type, Uri? smallThumbnail, Uri? largeThumbnail})
- Creates a FormData Object
-
Attachment.fromJson(Map<
String, dynamic> json) -
Deserializes
json
into an Attachment Object
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- largeThumbnail → Uri?
-
Uri for a large thumbnail
final
- name → String
-
Name of the Attachment
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- smallThumbnail → Uri?
-
Uri for a small thumbnail
final
- type → String
-
Mime Type of the type
final
- url → Uri
-
Url where this Attachment is stored
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes Attachment to json
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override