class MinePersonInfoEntity { MinePersonInfoEntity( {this.errorCode, this.description, this.errorMsg, this.data}); MinePersonInfoEntity.fromJson(Map json) { errorCode = json['errorCode']; description = json['description']; errorMsg = json['errorMsg']; data = json['data'] != null ? MinePersonInfoData.fromJson(json['data']) : null; } int? errorCode; String? description; String? errorMsg; MinePersonInfoData? data; Map toJson() { final Map data = {}; data['errorCode'] = errorCode; data['description'] = description; data['errorMsg'] = errorMsg; if (this.data != null) { data['data'] = this.data!.toJson(); } return data; } } class MinePersonInfoData { MinePersonInfoData( {this.mobile, this.uid, this.haveSafeAnswer, this.nickname, this.headUrl, this.accountName, this.countryId, this.email, this.countryName, this.isVip, this.deviceId, this.lang, this.amazonAlexa, this.googleHome, this.starchart}); MinePersonInfoData.fromJson(Map 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']; deviceId = json['deviceId']; lang = json['lang']; amazonAlexa = json['amazonAlexa'] != null ? AmazonAlexa.fromJson(json['amazonAlexa']) : null; googleHome = json['googleHome'] != null ? GoogleHome.fromJson(json['googleHome']) : null; starchart = json['starchart'] != null ? Starchart.fromJson(json['starchart']) : null; } String? mobile; int? uid; int? haveSafeAnswer; String? nickname; String? headUrl; String? accountName; int? countryId; String? email; String? countryName; int? isVip; String? deviceId; String? lang; AmazonAlexa? amazonAlexa; GoogleHome? googleHome; Starchart? starchart; Map toJson() { final Map data = {}; 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; data['deviceId'] = deviceId; data['lang'] = lang; if (amazonAlexa != null) { data['amazonAlexa'] = amazonAlexa!.toJson(); } if (googleHome != null) { data['googleHome'] = googleHome!.toJson(); } if (starchart != null) { data['starchart'] = starchart!.toJson(); } return data; } } class AmazonAlexa { AmazonAlexa({this.skillName, this.langs}); AmazonAlexa.fromJson(Map json) { skillName = json['skillName']; langs = json['langs'].cast(); } String? skillName; List? langs; Map toJson() { final Map data = {}; data['skillName'] = skillName; data['langs'] = langs; return data; } } class GoogleHome { GoogleHome({this.actionName, this.langs}); GoogleHome.fromJson(Map json) { actionName = json['actionName']; langs = json['langs'].cast(); } String? actionName; List? langs; Map toJson() { final Map data = {}; data['actionName'] = actionName; data['langs'] = langs; return data; } } class Starchart { String? starchartId; String? starchartPeerPublicKey; String? starchartPeerPrivateKey; Starchart( {this.starchartId, this.starchartPeerPublicKey, this.starchartPeerPrivateKey}); Starchart.fromJson(Map json) { starchartId = json['starchartId']; starchartPeerPublicKey = json['starchartPeerPublicKey']; starchartPeerPrivateKey = json['starchartPeerPrivateKey']; } Map toJson() { final Map data = Map(); data['starchartId'] = this.starchartId; data['starchartPeerPublicKey'] = this.starchartPeerPublicKey; data['starchartPeerPrivateKey'] = this.starchartPeerPrivateKey; return data; } }