PassKeyPair.fromMap constructor

PassKeyPair.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory PassKeyPair.fromMap(Map<String, dynamic> map) {
  return PassKeyPair(
    Uint8List.fromList(map['credentialHexBytes']),
    map['credentialId'],
    List<Uint256>.from(
      (map['publicKey'] as List<String>).map<Uint256>(
        (x) => Uint256.fromHex(x),
      ),
    ),
    map['name'],
    map['aaGUID'],
    DateTime.fromMillisecondsSinceEpoch(map['registrationTime']),
  );
}