AuthorRepo class

Constructors

AuthorRepo({String? badgeMarkdown, int? createdAt, String? method, String? repoUrl, bool? verified, int? verifiedAt})
Returns a new AuthorRepo instance.

Properties

badgeMarkdown ↔ String?
BadgeMarkdown is the ready-to-paste README snippet, DERIVED for each response from this deployment's badge host and never stored: a "Deploy on Hanzo" image linking to the one-click import of this repository. Re-hosting the builder changes every badge without touching a row.
getter/setter pair
createdAt ↔ int?
CreatedAt is unix seconds when the claim was first recorded. It equals verifiedAt on the first proof and then stays put while verifiedAt moves, so the pair reads as "claimed since / last proven".
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
method ↔ String?
Method is HOW ownership was proven: "oauth" — an IAM-linked forge token showed admin or push on the repository; "file" — a hanzo.json on the default branch carried this author's verify code; or "maintainer" — the repository sits in a first-party namespace, where ownership is intrinsic and the treasury author holds it with no proof step. Omitted on a row written before the method was recorded.
getter/setter pair
repoUrl ↔ String?
RepoURL is the claim key in canonical form — lowercased "host/owner/name", no scheme, no .git, host ∈ {github.com, gitlab.com}. A deploy's source repo is normalized through the same function before attribution, so the two sides can never miss on a cosmetic difference. UNIQUE across every author: first proven claim wins.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
verified ↔ bool?
Verified reports that ownership was proven. Only a proven claim is ever written, so it is true on every row this surface returns; the deploy path re-reads it regardless, because an unverified claim attributes nothing.
getter/setter pair
verifiedAt ↔ int?
VerifiedAt is unix seconds of the most recent successful proof. Re-verifying refreshes it, and the method beside it, in place.
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) → AuthorRepo?
Returns a new AuthorRepo instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<AuthorRepo>
mapFromJson(dynamic json) → Map<String, AuthorRepo>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<AuthorRepo>>

Constants

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