Map<String, dynamic> toMap() { return { 'registered': registered, 'credentialIds': credentialIds, 'device': device, 'errorCodes': errorCodes, }; }