FileResponse class

A response object containing a file.

Available extensions
Annotations
  • @JsonSerializable()
  • @CopyWith()

Constructors

FileResponse({String? name, String? role, DateTime? lastModified, String? thumbnailUrl, String? version, Document? document, Map<String, Component>? components, Map<String, ComponentSet>? componentSets, int? schemaVersion, Map<String, Style>? styles})
FileResponse.fromJson(Map<String, dynamic> json)
factory

Properties

components Map<String, Component>?
File components, if any.
final
componentSets Map<String, ComponentSet>?
File component sets, if any.
final
document Document?
File document (top-level node).
final
hashCode int
The hash code for this object.
no setterinherited
lastModified DateTime?
Last time file was modified.
final
name String?
Name of the file.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
role String?
Role.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schemaVersion int?
The schema version of the file.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
styles Map<String, Style>?
Map of styles within the file, if any.
final
thumbnailUrl String?
URL to file thumbnail.
final
version String?
File version.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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