DeviceMetadata.fromJson constructor
Creates a DeviceMetadata object from the JSON response to a GET request.
Implementation
factory DeviceMetadata.fromJson(Map<String, dynamic> dataMap) {
return DeviceMetadata(
name: dataMap[ApiFields.name] ?? "",
archetype: DeviceArchetype.fromString(dataMap[ApiFields.archetype] ?? ""),
);
}