FileJSON class
Constructors
Properties
- content ↔ String?
-
Content is the file's bytes, empty when Truncated.
getter/setter pair
- encoding ↔ String?
-
Encoding is how Content is carried: "utf8" verbatim, or "base64".
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- path ↔ String?
-
Path is the file's repo-relative path.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size ↔ int?
-
Size is the file's byte length in the repo.
getter/setter pair
- truncated ↔ bool?
-
Truncated marks a file past the read cap; no content is sent. A caller assembling a desired set must treat this as INCOMPLETE, never as empty.
getter/setter pair
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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
dynamic value) → FileJSON? -
Returns a new FileJSON instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< FileJSON> -
mapFromJson(
dynamic json) → Map< String, FileJSON> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< FileJSON> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.