6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit 7ac2a4ae
Changed files
comwell_key_app/lib/profile_settings/model/user.dart | 5 ----- .../test/profile_settings_test/profile_settings_cubit_test.dart | 1 - 2 files changed, 6 deletions(-)
Diff
diff --git a/comwell_key_app/lib/profile_settings/model/user.dart b/comwell_key_app/lib/profile_settings/model/user.dart
index f505cc8b..3c6c2e95 100644
--- a/comwell_key_app/lib/profile_settings/model/user.dart
+++ b/comwell_key_app/lib/profile_settings/model/user.dart
@@ -9,11 +9,9 @@ class User {
final String email;
final Address address;
final DateTime birthday;
- final String shopperReference;
User({
required this.id,
- required this.shopperReference,
required this.firstName,
required this.lastName,
required this.countryCode,
@@ -29,7 +27,6 @@ class User {
firstName: json['firstName'] as String,
lastName: json['lastName'] as String,
countryCode: json['countryCode'] as String,
- shopperReference: json["shopperReference"] as String? ?? "",
phone: json['phone'] as String,
email: json['email'] as String,
address: Address.fromJson(json['address'] as Map<String, dynamic>),
@@ -44,7 +41,6 @@ class User {
'lastName': lastName,
'phone': phone,
'email': email,
- 'shopperReference': shopperReference,
'address': address.toJson(),
'birthday': birthday.toIso8601String(),
};
@@ -66,7 +62,6 @@ class User {
firstName: firstName ?? this.firstName,
lastName: lastName ?? this.lastName,
countryCode: countryCode ?? this.countryCode,
- shopperReference: shopperReference ?? this.shopperReference,
phone: phone ?? this.phone,
email: email ?? this.email,
address: address ?? this.address,
diff --git a/comwell_key_app/test/profile_settings_test/profile_settings_cubit_test.dart b/comwell_key_app/test/profile_settings_test/profile_settings_cubit_test.dart
index 9937d65d..dcb3501e 100644
--- a/comwell_key_app/test/profile_settings_test/profile_settings_cubit_test.dart
+++ b/comwell_key_app/test/profile_settings_test/profile_settings_cubit_test.dart
@@ -31,7 +31,6 @@ void main() {
id: '1',
firstName: 'John',
lastName: 'Doe',
- shopperReference: "",
email: 'john.doe@example.com',
phone: '1234567890',
address: Address(