UserData class
UserData class for profiling at Infobip platform.
Constructors
-
UserData.new({String? externalUserId, String? firstName, String? lastName, String? middleName, Gender? gender, String? birthday, List<
String> ? phones, List<String> ? emails, List<String> ? tags, Map<String, dynamic> ? customAttributes, List<Installation> ? installations}) - Default constructor with all params.
-
UserData.fromJson(Map<
String, dynamic> json) - Resolving UserData from json.
Properties
- birthday ↔ String?
-
Birthday, accepted format is YYYY-MM-DD.
getter/setter pair
-
customAttributes
↔ Map<
String, dynamic> ? -
Custom attributes of the user, configurable at Portal.
getter/setter pair
-
emails
↔ List<
String> ? -
List of emails of the user, String in rfc2822 format, i.e.
user@infobip.com
.getter/setter pair - externalUserId ↔ String?
-
ExternalUserId of user.
getter/setter pair
- firstName ↔ String?
-
First name of the user, String.
getter/setter pair
- gender ↔ Gender?
-
Gender of the user.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
-
installations
↔ List<
Installation> ? -
List of Installations, assigned to the current user.
getter/setter pair
- lastName ↔ String?
-
Last name of the user, String.
getter/setter pair
- middleName ↔ String?
-
Middle name of the user, String.
getter/setter pair
-
phones
↔ List<
String> ? -
List of phones of the user, Strings in E.164 format, i.e.
38516419710
.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
List of tags of the user, String.
getter/setter pair
- type ↔ Type?
-
Type of the person. Lead is a not verified profile, Customer is a verified one (acquired by personalization).
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Mapping UserData to json.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
resolveGender(
String? str) → Gender? - Resolving Gender from json.
-
resolveInstallations(
List? str) → List< Installation> ? - Resolving Installations from json.
-
resolveLists(
List? str) → List< String> ? - Resolving lists from json.
-
resolveType(
String? str) → Type? - Resolving Type from json.