DescribeDeviceResponse.fromJson constructor

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

Implementation

factory DescribeDeviceResponse.fromJson(Map<String, dynamic> json) {
  return DescribeDeviceResponse(
    firstAccessedTime: timeStampFromJson(json['FirstAccessedTime']),
    lastAccessedTime: timeStampFromJson(json['LastAccessedTime']),
    manufacturer: json['Manufacturer'] as String?,
    model: json['Model'] as String?,
    operatingSystem: json['OperatingSystem'] as String?,
    operatingSystemVersion: json['OperatingSystemVersion'] as String?,
    patchLevel: json['PatchLevel'] as String?,
    status: (json['Status'] as String?)?.toDeviceStatus(),
    username: json['Username'] as String?,
  );
}