UNPKG

wallee

Version:
43 lines (42 loc) 2.01 kB
import { SpaceAddressCreateFromJSON, SpaceAddressCreateToJSON, } from './SpaceAddressCreate'; import { CreationEntityStateFromJSON, CreationEntityStateToJSON, } from './CreationEntityState'; /** * Check if a given object implements the AbstractSpaceUpdate interface. */ export function instanceOfAbstractSpaceUpdate(value) { return true; } export function AbstractSpaceUpdateFromJSON(json) { return AbstractSpaceUpdateFromJSONTyped(json, false); } export function AbstractSpaceUpdateFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'requestLimit': json['requestLimit'] == null ? undefined : json['requestLimit'], 'postalAddress': json['postalAddress'] == null ? undefined : SpaceAddressCreateFromJSON(json['postalAddress']), 'name': json['name'] == null ? undefined : json['name'], 'technicalContactAddresses': json['technicalContactAddresses'] == null ? undefined : new Set(json['technicalContactAddresses']), 'timeZone': json['timeZone'] == null ? undefined : json['timeZone'], 'state': json['state'] == null ? undefined : CreationEntityStateFromJSON(json['state']), 'primaryCurrency': json['primaryCurrency'] == null ? undefined : json['primaryCurrency'], }; } export function AbstractSpaceUpdateToJSON(json) { return AbstractSpaceUpdateToJSONTyped(json, false); } export function AbstractSpaceUpdateToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'requestLimit': value['requestLimit'], 'postalAddress': SpaceAddressCreateToJSON(value['postalAddress']), 'name': value['name'], 'technicalContactAddresses': value['technicalContactAddresses'] == null ? undefined : Array.from(value['technicalContactAddresses']), 'timeZone': value['timeZone'], 'state': CreationEntityStateToJSON(value['state']), 'primaryCurrency': value['primaryCurrency'], }; }