UserBean.fromJson constructor
从 JSON 创建 UserBean
Implementation
factory UserBean.fromJson(Map<String, dynamic> json) {
return UserBean(
id: json['id'] as int?,
staffId: json['staff_id'] as int?,
fromUserId: json['from_user_id'] as int?,
fromStaffId: json['from_staff_id'] as int?,
region: json['region'] as int?,
rmId: json['rm_id'] as int?,
createTime: json['create_time'] as int?,
updateTime: json['update_time'] as int?,
status: json['status'] as int?,
isActive: json['is_active'] as int?,
cc: json['cc'] as int?,
mobile: json['mobile'] as String?,
name: json['name'] as String?,
password: json['password'] as String?,
salt: json['salt'] as String?,
score: json['score'] as int?,
label: json['label'] as String?,
gender: json['gender'] as int?,
age: json['age'] as int?,
);
}