toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
_json[r'currentCapabilities'] = currentCapabilities;
_json[r'supportedCapabilities'] = supportedCapabilities;
if (manufacturer != null) {
_json[r'manufacturer'] = manufacturer;
}
if (model != null) {
_json[r'model'] = model;
}
if (revision != null) {
_json[r'revision'] = revision;
}
if (carrierConfiguration != null) {
_json[r'carrierConfiguration'] = carrierConfiguration;
}
if (carrierConfigurationRevision != null) {
_json[r'carrierConfigurationRevision'] = carrierConfigurationRevision;
}
if (hardwareRevision != null) {
_json[r'hardwareRevision'] = hardwareRevision;
}
if (deviceIdentifier != null) {
_json[r'deviceIdentifier'] = deviceIdentifier;
}
if (equipmentIdentifier != null) {
_json[r'equipmentIdentifier'] = equipmentIdentifier;
}
if (stateFailedReason != null) {
_json[r'stateFailedReason'] = stateFailedReason;
}
if (state != null) {
_json[r'state'] = state;
}
_json[r'accessTechnologies'] = accessTechnologies;
if (signalQuality != null) {
_json[r'signalQuality'] = signalQuality;
}
_json[r'supportedModes'] = supportedModes;
_json[r'currentModes'] = currentModes;
_json[r'supportedBands'] = supportedBands;
_json[r'currentBands'] = currentBands;
return _json;
}