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