@bitblit/ratchet-misc
Version:
Ratchet miscellaneous tooling that requires smallish dependant libraries
31 lines • 870 B
JavaScript
export function instanceOfGetChildInfoAllOfApiKeysV2(value) {
let isInstance = true;
isInstance = isInstance && 'name' in value;
isInstance = isInstance && 'key' in value;
return isInstance;
}
export function GetChildInfoAllOfApiKeysV2FromJSON(json) {
return GetChildInfoAllOfApiKeysV2FromJSONTyped(json, false);
}
export function GetChildInfoAllOfApiKeysV2FromJSONTyped(json, ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
name: json['name'],
key: json['key'],
};
}
export function GetChildInfoAllOfApiKeysV2ToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
name: value.name,
key: value.key,
};
}
//# sourceMappingURL=GetChildInfoAllOfApiKeysV2.js.map