UNPKG

@nevis-security/nevis-mobile-authentication-sdk-react

Version:

React Native plugin for Nevis Mobile Authentication SDK. Supports only mobile.

47 lines (41 loc) 1.14 kB
"use strict"; /** * Copyright © 2024 Nevis Security AG. All rights reserved. */ import { MetaData } from '../../../metaData/MetaData'; import { ChannelMessage } from '../ChannelMessage'; /** * Holds the parameters of the metaData native event. */ export class MetaDataInMessage extends ChannelMessage { /** * The identifier of the operation. */ /** * The metaData information. */ /** * Default constructor for {@link MetaDataInMessage}. * * @param operationId the identifier of the operation. * @param metaData the metaData. */ constructor(operationId, metaData) { super(); this.operationId = operationId; this.metaData = metaData; } /** * Alternate constructor that creates a {@link MetaDataInMessage} from a json. * * @param json contains the source for instance creation. * @returns the created instance. */ static fromJson(json) { const operationId = json.operationId; const data = json; const metaData = data && MetaData.fromJson(data); return new MetaDataInMessage(operationId, metaData); } } //# sourceMappingURL=MetaDataInMessage.js.map