SocialAccountBody class

Constructors

SocialAccountBody({String? handle, String? provider, String? status})
Returns a new SocialAccountBody instance.

Properties

handle ↔ String?
Handle is the account's public name on the network, as the customer knows it (@acme). Trimmed and bounded at 1024 characters. Example: "@acme"
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
provider ↔ String?
Provider is the network this account is on: x, facebook, instagram, linkedin, tiktok, youtube or threads. Omitted means x. Anything else is refused rather than coerced, because a stored account on a network that does not exist can never be published through. 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. Omitted means connected. Only a connected account is a publish target.
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) → SocialAccountBody?
Returns a new SocialAccountBody instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<SocialAccountBody>
mapFromJson(dynamic json) → Map<String, SocialAccountBody>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<SocialAccountBody>>

Constants

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