CommitJSON class

Constructors

CommitJSON({String? authorEmail, String? authorName, String? date, String? message, String? sha, String? shortSha})
Returns a new CommitJSON instance.

Properties

authorEmail ↔ String?
AuthorEmail is the commit author's email.
getter/setter pair
authorName ↔ String?
AuthorName is the commit author's name.
getter/setter pair
date ↔ String?
Date is the author date, RFC 3339 UTC.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
message ↔ String?
Message is the commit's SUBJECT — its first line only.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sha ↔ String?
SHA is the full commit hash.
getter/setter pair
shortSha ↔ String?
ShortSHA is the abbreviated hash a UI displays.
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) → CommitJSON?
Returns a new CommitJSON instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<CommitJSON>
mapFromJson(dynamic json) → Map<String, CommitJSON>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<CommitJSON>>

Constants

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