SocialAccount class

Constructors

SocialAccount({int? createdAt, String? handle, String? id, String? provider, String? status, int? updatedAt})
Returns a new SocialAccount instance.

Properties

createdAt ↔ int?
CreatedAt is when the account was connected, as a unix timestamp in seconds.
getter/setter pair
handle ↔ String?
Handle is the account's public name on the network, as the customer knows it. Trimmed and bounded at 1024 characters. Example: "@acme"
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the account's identifier, minted on connect and the id every later call addresses it by. Example: "acct_7f3c1a"
getter/setter pair
provider ↔ String?
Provider is the network this account is on: x, facebook, instagram, linkedin, tiktok, youtube or threads. Example: "x"
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ String?
Status is the connection lifecycle: connected, disconnected or error. Only a connected account is a publish target.
getter/setter pair
updatedAt ↔ int?
UpdatedAt is when the account row last changed, as a unix timestamp in seconds. The listing is ordered by it, newest first.
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) → SocialAccount?
Returns a new SocialAccount instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<SocialAccount>
mapFromJson(dynamic json) → Map<String, SocialAccount>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<SocialAccount>>

Constants

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