Repository class Null safety

Model class for a repository.

Annotations

Constructors

Repository({String name = '', int id = 0, String fullName = '', UserInformation? owner, String htmlUrl = '', String description = '', String cloneUrl = '', String gitUrl = '', String sshUrl = '', String svnUrl = '', String defaultBranch = '', DateTime? createdAt, bool isPrivate = false, bool isFork = false, int stargazersCount = 0, int watchersCount = 0, String language = '', bool hasWiki = false, bool hasDownloads = false, int forksCount = 0, int openIssuesCount = 0, int subscribersCount = 0, int networkCount = 0, bool hasIssues = false, int size = 0, bool archived = false, bool disabled = false, String homepage = '', DateTime? updatedAt, DateTime? pushedAt, LicenseKind? license, bool hasPages = false, RepositoryPermissions? permissions})
Repository.fromJson(Map<String, dynamic> input)
factory

Properties

archived bool
@JsonKey(defaultValue: false), final
cloneUrl String
@JsonKey(defaultValue: ''), final
createdAt DateTime?
The time the repository was created at
final
defaultBranch String
Repository Default Branch
@JsonKey(defaultValue: ''), final
description String
Repository Description
@JsonKey(defaultValue: ''), final
disabled bool
@JsonKey(defaultValue: false), final
forksCount int
Number of Forks
@JsonKey(defaultValue: 0), final
fullName String
Full Repository Name
@JsonKey(defaultValue: ''), final
gitUrl String
@JsonKey(defaultValue: ''), final
hasDownloads bool
If the Repository has any Downloads
@JsonKey(defaultValue: false), final
hashCode int
The hash code for this object. [...]
read-only, inherited
hasIssues bool
If the Repository has Issues Enabled
@JsonKey(defaultValue: false), final
hasPages bool
If the Repository has any Github Pages
@JsonKey(defaultValue: false), final
hasWiki bool
If the Repository has the Wiki Enabled
@JsonKey(defaultValue: false), final
homepage String
Url to the Repository Homepage
@JsonKey(defaultValue: ''), final
htmlUrl String
Url to the GitHub Repository Page
@JsonKey(defaultValue: ''), final
id int
Repository ID
@JsonKey(defaultValue: 0), final
isFork bool
If the Repository is a fork
@JsonKey(name: 'fork', defaultValue: false), final
isPrivate bool
If the Repository is Private
@JsonKey(name: 'private', defaultValue: false), final
language String
Repository Language
@JsonKey(defaultValue: ''), final
license LicenseKind?
final
name String
Repository Name
@JsonKey(defaultValue: ''), final
networkCount int
Number of users in the network
@JsonKey(defaultValue: 0), final
openIssuesCount int
Number of Open Issues
@JsonKey(defaultValue: 0), final
owner UserInformation?
Repository Owner
@JsonKey(defaultValue: null), final
permissions RepositoryPermissions?
read / write
pushedAt DateTime?
The last time the repository was pushed at
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
size int
Repository Size
@JsonKey(defaultValue: 0), final
sshUrl String
@JsonKey(defaultValue: ''), final
stargazersCount int
Repository Stars
@JsonKey(defaultValue: 0), final
subscribersCount int
Number of Subscribers
@JsonKey(defaultValue: 0), final
svnUrl String
@JsonKey(defaultValue: ''), final
updatedAt DateTime?
final
watchersCount int
Repository Watchers
@JsonKey(defaultValue: 0), final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
slug() RepositorySlug
Gets the Repository Slug (Full Name).
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
override

Operators

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