UNPKG

@bitblit/ratchet-misc

Version:

Ratchet miscellaneous tooling that requires smallish dependant libraries

37 lines 1.01 kB
export function instanceOfGetIpFromSender(value) { let isInstance = true; isInstance = isInstance && 'id' in value; isInstance = isInstance && 'ip' in value; isInstance = isInstance && 'domain' in value; isInstance = isInstance && 'weight' in value; return isInstance; } export function GetIpFromSenderFromJSON(json) { return GetIpFromSenderFromJSONTyped(json, false); } export function GetIpFromSenderFromJSONTyped(json, ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { id: json['id'], ip: json['ip'], domain: json['domain'], weight: json['weight'], }; } export function GetIpFromSenderToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { id: value.id, ip: value.ip, domain: value.domain, weight: value.weight, }; } //# sourceMappingURL=GetIpFromSender.js.map