82 lines
2.0 KiB
Dart
82 lines
2.0 KiB
Dart
class MinePersonInfoEntity {
|
|
int? errorCode;
|
|
String? description;
|
|
String? errorMsg;
|
|
MinePersonInfoData? data;
|
|
|
|
MinePersonInfoEntity(
|
|
{this.errorCode, this.description, this.errorMsg, this.data});
|
|
|
|
MinePersonInfoEntity.fromJson(Map<String, dynamic> json) {
|
|
errorCode = json['errorCode'];
|
|
description = json['description'];
|
|
errorMsg = json['errorMsg'];
|
|
data =
|
|
json['data'] != null ? MinePersonInfoData.fromJson(json['data']) : null;
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
data['errorCode'] = errorCode;
|
|
data['description'] = description;
|
|
data['errorMsg'] = errorMsg;
|
|
if (this.data != null) {
|
|
data['data'] = this.data!.toJson();
|
|
}
|
|
return data;
|
|
}
|
|
}
|
|
|
|
class MinePersonInfoData {
|
|
String? mobile;
|
|
int? uid;
|
|
int? haveSafeAnswer;
|
|
String? nickname;
|
|
String? headUrl;
|
|
String? accountName;
|
|
int? countryId;
|
|
String? email;
|
|
String? countryName;
|
|
int? isVip;
|
|
|
|
MinePersonInfoData(
|
|
{this.mobile,
|
|
this.uid,
|
|
this.haveSafeAnswer,
|
|
this.nickname,
|
|
this.headUrl,
|
|
this.accountName,
|
|
this.countryId,
|
|
this.email,
|
|
this.countryName,
|
|
this.isVip});
|
|
|
|
MinePersonInfoData.fromJson(Map<String, dynamic> json) {
|
|
mobile = json['mobile'];
|
|
uid = json['uid'];
|
|
haveSafeAnswer = json['haveSafeAnswer'];
|
|
nickname = json['nickname'];
|
|
headUrl = json['headUrl'];
|
|
accountName = json['accountName'];
|
|
countryId = json['countryId'];
|
|
email = json['email'];
|
|
countryName = json['countryName'];
|
|
isVip = json['isVip'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
data['mobile'] = mobile;
|
|
data['uid'] = uid;
|
|
data['haveSafeAnswer'] = haveSafeAnswer;
|
|
data['nickname'] = nickname;
|
|
data['headUrl'] = headUrl;
|
|
data['accountName'] = accountName;
|
|
data['countryId'] = countryId;
|
|
data['email'] = email;
|
|
data['countryName'] = countryName;
|
|
data['isVip'] = isVip;
|
|
return data;
|
|
}
|
|
}
|