CommercePayerResponse class

Constructors

CommercePayerResponse({required CommercePayerResponseObjectEnum object, required String id, required String instanceId, String? userId, String? firstName, String? lastName, String? email, String? organizationId, String? organizationName, String? imageUrl, int? createdAt, int? updatedAt})
Returns a new CommercePayerResponse instance.

Properties

createdAt int?
Unix timestamp (in milliseconds) when the payer was created.
getter/setter pair
email String?
Email address of the payer.
getter/setter pair
firstName String?
First name of the payer.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
id String
Unique identifier for the payer.
getter/setter pair
imageUrl String?
URL of the payer's image/avatar.
getter/setter pair
instanceId String
Unique identifier for the Clerk instance.
getter/setter pair
lastName String?
Last name of the payer.
getter/setter pair
object CommercePayerResponseObjectEnum
String representing the object's type. Objects of the same type share the same value.
getter/setter pair
organizationId String?
Organization ID for org-type payers.
getter/setter pair
organizationName String?
Organization name for org-type payers.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updatedAt int?
Unix timestamp (in milliseconds) when the payer was last updated.
getter/setter pair
userId String?
User ID for user-type payers.
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) CommercePayerResponse?
Returns a new CommercePayerResponse instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<CommercePayerResponse>
mapFromJson(dynamic json) Map<String, CommercePayerResponse>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<CommercePayerResponse>>

Constants

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