|
|
|
@ -9,6 +9,7 @@ class UserData { |
|
|
|
String? identityCard; |
|
|
|
int? genderCode; |
|
|
|
Map? auditProfilePhoto; |
|
|
|
bool? hasUploadProfilePhoto; |
|
|
|
final String? genderValue; |
|
|
|
final String? homeCountryCode; |
|
|
|
final String? homeCountry; |
|
|
|
@ -133,7 +134,8 @@ class UserData { |
|
|
|
this.realName, |
|
|
|
this.matchmakerFlag, |
|
|
|
this.photoList, |
|
|
|
this.matchmakerType |
|
|
|
this.matchmakerType, |
|
|
|
this.hasUploadProfilePhoto |
|
|
|
}); |
|
|
|
|
|
|
|
// 从JSON映射创建实例 |
|
|
|
@ -145,6 +147,7 @@ class UserData { |
|
|
|
profilePhoto: json['profilePhoto'], |
|
|
|
identityCard: json['identityCard'], |
|
|
|
genderCode: json['genderCode'] ?? 0, |
|
|
|
hasUploadProfilePhoto: json['hasUploadProfilePhoto'] ?? false, |
|
|
|
auditProfilePhoto: json['auditProfilePhoto'] ?? null, |
|
|
|
genderValue: json['genderValue'] ?? '', |
|
|
|
homeCountryCode: json['homeCountryCode'], |
|
|
|
@ -212,6 +215,7 @@ class UserData { |
|
|
|
'profilePhoto': profilePhoto, |
|
|
|
'identityCard': identityCard, |
|
|
|
'genderCode': genderCode, |
|
|
|
'hasUploadProfilePhoto': hasUploadProfilePhoto, |
|
|
|
'auditProfilePhoto': auditProfilePhoto, |
|
|
|
'genderValue': genderValue, |
|
|
|
'homeCountryCode': homeCountryCode, |
|
|
|
@ -274,4 +278,11 @@ class UserData { |
|
|
|
String toString() { |
|
|
|
return 'UserData(id: $id, nickName: $nickName, genderCode: $genderCode, auditProfilePhoto: $auditProfilePhoto, genderValue: $genderValue, birthYear: $birthYear, photoList: $photoList)'; |
|
|
|
} |
|
|
|
|
|
|
|
bool isPhotoAudited(){ |
|
|
|
if(hasUploadProfilePhoto! && profilePhoto != null){ |
|
|
|
return hasUploadProfilePhoto! && profilePhoto!.isNotEmpty; |
|
|
|
} |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |