GitHubFile class

Model class for a file on GitHub.

Annotations

Constructors

GitHubFile({String? type, String? encoding, int? size, String? name, String? path, String? content, String? sha, String? htmlUrl, String? gitUrl, String? downloadUrl, Links? links, RepositorySlug? sourceRepository})
GitHubFile.fromJson(Map<String, dynamic> input)
factory

Properties

content ↔ String?
Base-64 encoded file content with newlines.
getter/setter pair
downloadUrl ↔ String?
Download Url
getter/setter pair
encoding ↔ String?
File Encoding
getter/setter pair
gitUrl ↔ String?
Git Url
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
htmlUrl ↔ String?
Url to file
getter/setter pair
Links
getter/setter pair
name ↔ String?
File Name
getter/setter pair
path ↔ String?
File Path
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sha ↔ String?
SHA
getter/setter pair
size ↔ int?
File Size
getter/setter pair
sourceRepository ↔ RepositorySlug?
Source Repository
getter/setter pair
text → String
The value in content Base-64 decoded.
no setter
type ↔ String?
Type of File
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.
inherited

Operators

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