UNPKG

wallee

Version:
32 lines (31 loc) 1.12 kB
import { PaymentInformationHashTypeFromJSON, PaymentInformationHashTypeToJSON, } from './PaymentInformationHashType'; /** * Check if a given object implements the PaymentInformationHash interface. */ export function instanceOfPaymentInformationHash(value) { return true; } export function PaymentInformationHashFromJSON(json) { return PaymentInformationHashFromJSONTyped(json, false); } export function PaymentInformationHashFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'id': json['id'] == null ? undefined : json['id'], 'type': json['type'] == null ? undefined : PaymentInformationHashTypeFromJSON(json['type']), 'value': json['value'] == null ? undefined : json['value'], }; } export function PaymentInformationHashToJSON(json) { return PaymentInformationHashToJSONTyped(json, false); } export function PaymentInformationHashToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'type': PaymentInformationHashTypeToJSON(value['type']), }; }