UNPKG

wallee

Version:
37 lines (36 loc) 1.53 kB
import { BankAccountEnvironmentFromJSON, BankAccountEnvironmentToJSON, } from './BankAccountEnvironment'; import { BankAccountFromJSON, BankAccountToJSON, } from './BankAccount'; /** * Check if a given object implements the CurrencyBankAccount interface. */ export function instanceOfCurrencyBankAccount(value) { return true; } export function CurrencyBankAccountFromJSON(json) { return CurrencyBankAccountFromJSONTyped(json, false); } export function CurrencyBankAccountFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'bankAccount': json['bankAccount'] == null ? undefined : BankAccountFromJSON(json['bankAccount']), 'linkedSpaceId': json['linkedSpaceId'] == null ? undefined : json['linkedSpaceId'], 'environment': json['environment'] == null ? undefined : BankAccountEnvironmentFromJSON(json['environment']), 'currency': json['currency'] == null ? undefined : json['currency'], 'id': json['id'] == null ? undefined : json['id'], 'version': json['version'] == null ? undefined : json['version'], }; } export function CurrencyBankAccountToJSON(json) { return CurrencyBankAccountToJSONTyped(json, false); } export function CurrencyBankAccountToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'bankAccount': BankAccountToJSON(value['bankAccount']), 'environment': BankAccountEnvironmentToJSON(value['environment']), }; }