feat: update customer response
This commit is contained in:
@@ -70,6 +70,9 @@ class Customer {
|
||||
final String? id;
|
||||
final String? organizationId;
|
||||
final String? name;
|
||||
final String? email;
|
||||
final String? phone;
|
||||
final String? address;
|
||||
final bool? isDefault;
|
||||
final bool? isActive;
|
||||
final Map<String, dynamic>? metadata;
|
||||
@@ -80,6 +83,9 @@ class Customer {
|
||||
this.id,
|
||||
this.organizationId,
|
||||
this.name,
|
||||
this.email,
|
||||
this.phone,
|
||||
this.address,
|
||||
this.isDefault,
|
||||
this.isActive,
|
||||
this.metadata,
|
||||
@@ -91,6 +97,9 @@ class Customer {
|
||||
id: json["id"],
|
||||
organizationId: json["organization_id"],
|
||||
name: json["name"],
|
||||
email: json["email"],
|
||||
phone: json["phone"],
|
||||
address: json["address"],
|
||||
isDefault: json["is_default"],
|
||||
isActive: json["is_active"],
|
||||
metadata: json["metadata"] ?? {},
|
||||
@@ -106,6 +115,9 @@ class Customer {
|
||||
"id": id,
|
||||
"organization_id": organizationId,
|
||||
"name": name,
|
||||
"email": email,
|
||||
"phone": phone,
|
||||
"address": address,
|
||||
"is_default": isDefault,
|
||||
"is_active": isActive,
|
||||
"metadata": metadata,
|
||||
|
||||
Reference in New Issue
Block a user