CreateUserRequest class

Payload for the create-user call.

The backend requires email, full_name, and mobile_number, so this is the single place that turns an absent value from the host app into a placeholder. Callers pass null for anything they don't have; the request that goes on the wire is always complete.

Annotations
  • @JsonSerializable.new()

Constructors

CreateUserRequest({String? email, String? fullName, String? mobileNumber, required String workflowId})
CreateUserRequest.fromJson(Map<String, dynamic> json)
factory

Properties

email → String
final
fullName → String
final
hashCode → int
The hash code for this object.
no setterinherited
mobileNumber → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
workflowId → String
final

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.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

defaultEmail → const String
Sent when the host app supplies no email address. Uses the RFC 2606 reserved example.com domain, so it can never resolve to a real inbox.
defaultFullName → const String
Sent when the host app supplies no full name.
defaultMobileNumber → const String
Sent when the host app supplies no mobile number.