DeviceProfileConfiguration.fromJson constructor
Implementation
factory DeviceProfileConfiguration.fromJson(Map<String, dynamic> json) {
if (json.containsKey('type')) {
var deviceProfileType = deviceProfileTypeFromString(json['type']);
switch (deviceProfileType) {
case DeviceProfileType.DEFAULT:
return DefaultDeviceProfileConfiguration.fromJson(json);
}
} else {
throw FormatException('Missing type!');
}
}