ReadIDResult.fromJson constructor
Returns a ReadIDResult type from a JSON
Implementation
@visibleForTesting
/// Returns a ReadIDResult type from a JSON
factory ReadIDResult.fromJson(Map<String, dynamic> data) {
final vizResult = data['vizResult'] == null
? null
: Map<String, dynamic>.from(data['vizResult']);
final nfcResult = data['nfcResult'] == null
? null
: Map<String, dynamic>.from(data['nfcResult']);
return ReadIDResult(
vizResult: vizResult == null ? null : VIZResult.fromJson(vizResult),
nfcResult: nfcResult == null ? null : NFCResult.fromJson(nfcResult));
}