GitHubFile class Null safety

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.
read / write
downloadUrl String?
Download Url
@JsonKey(name: 'download_url'), read / write
encoding String?
File Encoding
read / write
gitUrl String?
Git Url
@JsonKey(name: 'git_url'), read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
htmlUrl String?
Url to file
@JsonKey(name: 'html_url'), read / write
Links
@JsonKey(name: '_links'), read / write
name String?
File Name
read / write
path String?
File Path
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sha String?
SHA
read / write
size int?
File Size
read / write
sourceRepository RepositorySlug?
Source Repository
read / write
text String
The value in content Base-64 decoded.
read-only
type String?
Type of File
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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