ScpResponseFetchNvcn.fromJson constructor
ScpResponseFetchNvcn.fromJson(
- dynamic json
Implementation
factory ScpResponseFetchNvcn.fromJson(var json) {
if (json['type'] == type) {
if (json['deviceId'] == null ||
json['deviceId'] == '' ||
json['nvcn'] == null ||
json['nvcn'] == '') {
return ScpResponseFetchNvcn();
}
ScpResponseFetchNvcn nvcnResponse = ScpResponseFetchNvcn(
deviceId: json['deviceId'],
nvcn: json['nvcn'],
);
return nvcnResponse;
}
return ScpResponseFetchNvcn();
}