Subject class

Constructors

Subject({int? createdAt, String? email, String? id, String? kind, String? name, String? org, String? ref, int? updatedAt})
Returns a new Subject instance.

Properties

createdAt ↔ int?
CreatedAt is when the subject was first recorded, Unix SECONDS.
getter/setter pair
email ↔ String?
Email is the party's address, when the org supplied one. It is PII: sealed at rest, returned only to the owning org, and never copied into a check record.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the opaque handle every other record uses to point at this party. It is the only reference that leaves this type, which is what keeps the PII in one place: a check, an accreditation and an audit row all carry the id and none of them carry the name.
getter/setter pair
kind ↔ String?
Kind is what is being verified: "individual" (a natural person, so KYC) or "business" (a legal entity, so KYB). It decides which provider flow runs.
getter/setter pair
name ↔ String?
Name is the party's name, under the same PII rule as Email. For a business it is the legal entity name rather than a trading name, since that is what a provider verifies against.
getter/setter pair
org ↔ String?
Org is the tenant that is doing the verifying — the party who must answer for this record, not the party being verified. A subject is returned only to it.
getter/setter pair
ref ↔ String?
Ref is the org's OWN identifier for this party, carried so a caller can match a subject back to their system without keeping a second mapping. Opaque here: nothing in this plane parses or enforces it.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
updatedAt ↔ int?
UpdatedAt is when the subject's own fields last changed, Unix seconds. A check moving to a new status does not touch it — that history lives on the check.
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) → Subject?
Returns a new Subject instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Subject>
mapFromJson(dynamic json) → Map<String, Subject>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Subject>>

Constants

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