@bitblit/ratchet-misc
Version:
Ratchet miscellaneous tooling that requires smallish dependant libraries
31 lines • 836 B
JavaScript
import { exists } from '../runtime.js';
export function instanceOfCreateReseller(value) {
let isInstance = true;
isInstance = isInstance && 'authKey' in value;
return isInstance;
}
export function CreateResellerFromJSON(json) {
return CreateResellerFromJSONTyped(json, false);
}
export function CreateResellerFromJSONTyped(json, ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
authKey: json['authKey'],
id: !exists(json, 'id') ? undefined : json['id'],
};
}
export function CreateResellerToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
authKey: value.authKey,
id: value.id,
};
}
//# sourceMappingURL=CreateReseller.js.map