class ConfiguringWifiEntity { int? errorCode; String? description; String? errorMsg; Data? data; ConfiguringWifiEntity( {this.errorCode, this.description, this.errorMsg, this.data}); ConfiguringWifiEntity.fromJson(Map json) { errorCode = json['errorCode']; description = json['description']; errorMsg = json['errorMsg']; data = json['data'] != null ? Data.fromJson(json['data']) : null; } 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 Data { int? serviceNum; List? serviceList; Data({this.serviceNum, this.serviceList}); Data.fromJson(Map json) { serviceNum = json['serviceNum']; if (json['serviceList'] != null) { serviceList = []; json['serviceList'].forEach((v) { serviceList!.add(ServiceList.fromJson(v)); }); } } Map toJson() { final Map data = {}; data['serviceNum'] = serviceNum; if (serviceList != null) { data['serviceList'] = serviceList!.map((v) => v.toJson()).toList(); } return data; } } class ServiceList { String? serviceIp; String? port; ServiceList({this.serviceIp, this.port}); ServiceList.fromJson(Map json) { serviceIp = json['serviceIp']; port = json['port']; } Map toJson() { final Map data = {}; data['serviceIp'] = serviceIp; data['port'] = port; return data; } }