UserProfileModel class

用户画像数据模型

Constructors

UserProfileModel({int? id, String? userId, String? gender, int? heightCm, double? weightKg, int? bustCm, int? waistCm, int? hipsCm, String? fitPreference, List<String>? stylePreferenceTags, List<String>? colorPreferenceTags, String? avoidElements, Map<String, dynamic>? userProfileData, String? sceneTag, double? bmi, double? waistHipRatio, String? createdAt, String? updatedAt})
UserProfileModel.fromJson(Map<String, dynamic> json)
factory

Properties

avoidElements String?
getter/setter pair
bmi double?
getter/setter pair
bustCm int?
getter/setter pair
colorPreferenceTags List<String>?
getter/setter pair
createdAt String?
getter/setter pair
fitPreference String?
getter/setter pair
gender String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
heightCm int?
getter/setter pair
hipsCm int?
getter/setter pair
id int?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sceneTag String?
getter/setter pair
stylePreferenceTags List<String>?
getter/setter pair
updatedAt String?
getter/setter pair
userId String?
getter/setter pair
userProfileData Map<String, dynamic>?
getter/setter pair
waistCm int?
getter/setter pair
waistHipRatio double?
getter/setter pair
weightKg double?
getter/setter pair

Methods

copyWith({int? id, String? userId, String? gender, int? heightCm, double? weightKg, int? bustCm, int? waistCm, int? hipsCm, String? fitPreference, List<String>? stylePreferenceTags, List<String>? colorPreferenceTags, String? avoidElements, Map<String, dynamic>? userProfileData, String? sceneTag, double? bmi, double? waistHipRatio, String? createdAt, String? updatedAt}) UserProfileModel
复制并更新部分字段
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toJsonString() String
转换为JSON字符串
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJsonString(String? jsonString) UserProfileModel?
从JSON字符串创建