EzvizProbeDeviceInfo.fromJson constructor

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

Implementation

factory EzvizProbeDeviceInfo.fromJson(Map<String, dynamic> json) {
  return EzvizProbeDeviceInfo(
    deviceSerial: json['deviceSerial'] ?? '',
    deviceName: json['deviceName'] ?? '',
    deviceType: json['deviceType'] ?? '',
    status: json['status'] ?? 0,
    supportWifi: json['supportWifi'] ?? false,
    netType: json['netType'] ?? '',
  );
}