UNPKG

wallee

Version:
37 lines (36 loc) 1.43 kB
import { BankAccountStateFromJSON, BankAccountStateToJSON, } from './BankAccountState'; /** * Check if a given object implements the BankAccount interface. */ export function instanceOfBankAccount(value) { return true; } export function BankAccountFromJSON(json) { return BankAccountFromJSONTyped(json, false); } export function BankAccountFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'identifier': json['identifier'] == null ? undefined : json['identifier'], 'linkedSpaceId': json['linkedSpaceId'] == null ? undefined : json['linkedSpaceId'], 'plannedPurgeDate': json['plannedPurgeDate'] == null ? undefined : (new Date(json['plannedPurgeDate'])), 'description': json['description'] == null ? undefined : json['description'], 'id': json['id'] == null ? undefined : json['id'], 'state': json['state'] == null ? undefined : BankAccountStateFromJSON(json['state']), 'type': json['type'] == null ? undefined : json['type'], 'version': json['version'] == null ? undefined : json['version'], }; } export function BankAccountToJSON(json) { return BankAccountToJSONTyped(json, false); } export function BankAccountToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'state': BankAccountStateToJSON(value['state']), }; }