Device.fromJson constructor

Device.fromJson(
  1. Map<String, dynamic> json
)

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?,
  );
}