Device.fromJson constructor
Implementation
factory Device.fromJson(Map<String, dynamic> json) {
return Device(
attributes: json['attributes'] != null
? Attributes.fromJson(json['attributes'] as Map<String, dynamic>)
: null,
deviceId: json['deviceId'] as String?,
type: json['type'] as String?,
);
}