BlobJSON class

Constructors

BlobJSON({bool? binary, String? content, String? encoding, String? path, int? size, bool? truncated})
Returns a new BlobJSON instance.

Properties

binary ↔ bool?
Binary marks content git could not treat as text; it comes back base64.
getter/setter pair
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, whatever was returned below.
getter/setter pair
truncated ↔ bool?
Truncated marks a file past the 1 MiB view cap. No content is sent — clone the repo for it.
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) → BlobJSON?
Returns a new BlobJSON instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<BlobJSON>
mapFromJson(dynamic json) → Map<String, BlobJSON>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<BlobJSON>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.