parseDataDOFromRAPDU method
Returns decoded data from DO85 or DO87 if they are present in rapdu.
Implementation
@visibleForTesting
DecodedTV? parseDataDOFromRAPDU(final ResponseAPDU rapdu) {
if (rapdu.data == null ||
rapdu.data!.isEmpty ||
(rapdu.data![0] != SecureMessaging.tagDO85 &&
rapdu.data![0] != SecureMessaging.tagDO87)) {
return null;
}
final DO = TLV.decode(rapdu.data!);
return DO;
}