1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- class ConnectResult {
- String? token;
- String? uniqueCode;
- ConnectResult({
- this.token,
- this.uniqueCode,
- });
- factory ConnectResult.fromJson(Map<String, dynamic> map) {
- return ConnectResult(
- token: map['Token'],
- uniqueCode: map['UniqueCode'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(token != null)
- map['Token'] = token;
- if(uniqueCode != null)
- map['UniqueCode'] = uniqueCode;
- return map;
- }
- }
- class ConnectRequest {
- String? deviceUniqueCode;
- String? password;
- String? deviceModel;
- String? deviceType;
- String? softwareVersion;
- String? systemVersion;
- String? cPUModel;
- String? systemLanguage;
- String? description;
- String? name;
- String? organizationCode;
- ConnectRequest({
- this.deviceUniqueCode,
- this.password,
- this.deviceModel,
- this.deviceType,
- this.softwareVersion,
- this.systemVersion,
- this.cPUModel,
- this.systemLanguage,
- this.description,
- this.name,
- this.organizationCode,
- });
- factory ConnectRequest.fromJson(Map<String, dynamic> map) {
- return ConnectRequest(
- deviceUniqueCode: map['DeviceUniqueCode'],
- password: map['Password'],
- deviceModel: map['DeviceModel'],
- deviceType: map['DeviceType'],
- softwareVersion: map['SoftwareVersion'],
- systemVersion: map['SystemVersion'],
- cPUModel: map['CPUModel'],
- systemLanguage: map['SystemLanguage'],
- description: map['Description'],
- name: map['Name'],
- organizationCode: map['OrganizationCode'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if(deviceUniqueCode != null)
- map['DeviceUniqueCode'] = deviceUniqueCode;
- if(password != null)
- map['Password'] = password;
- if(deviceModel != null)
- map['DeviceModel'] = deviceModel;
- if(deviceType != null)
- map['DeviceType'] = deviceType;
- if(softwareVersion != null)
- map['SoftwareVersion'] = softwareVersion;
- if(systemVersion != null)
- map['SystemVersion'] = systemVersion;
- if(cPUModel != null)
- map['CPUModel'] = cPUModel;
- if(systemLanguage != null)
- map['SystemLanguage'] = systemLanguage;
- if(description != null)
- map['Description'] = description;
- if(name != null)
- map['Name'] = name;
- if(organizationCode != null)
- map['OrganizationCode'] = organizationCode;
- return map;
- }
- }
|