SyncView class

Constructors

SyncView({String? actor, String? createdAt, String? direction, String? id, String? kind, EndpointView? source_, EndpointView? target, String? trigger, String? updatedAt})
Returns a new SyncView instance.

Properties

actor ↔ String?
Actor is the identity a reconcile writes AS. It is the loop guard: a change this identity made is one we already have, so it is not synced back.
getter/setter pair
createdAt ↔ String?
CreatedAt is when the link was first declared, RFC3339 in UTC.
getter/setter pair
direction ↔ String?
Direction is which way work flows: "both", "pull" (target ← source), "push" (source → target), or "off" — which keeps the link declared and moves nothing.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the link's handle, derived from its source and target — which is what makes re-declaring the same pair an update rather than a duplicate.
getter/setter pair
kind ↔ String?
Kind is what is being synced. "git" today; the field exists so a storage or database link is a value here rather than a second route family.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source_ ↔ EndpointView?
Source is the side read FROM on a pull.
getter/setter pair
target ↔ EndpointView?
Target is the side written TO on a push.
getter/setter pair
trigger ↔ String?
Trigger is what starts a reconcile: "webhook" (the provider tells us), "poll" (we ask on a schedule), or "manual" (only an explicit call).
getter/setter pair
updatedAt ↔ String?
UpdatedAt is bumped by every reconcile, so it reads as the LAST-SYNCED time rather than the last edit. Absent until the first one runs.
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) → SyncView?
Returns a new SyncView instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<SyncView>
mapFromJson(dynamic json) → Map<String, SyncView>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<SyncView>>

Constants

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