@bitblit/ratchet-misc
Version:
Ratchet miscellaneous tooling that requires smallish dependant libraries
31 lines • 799 B
JavaScript
export function instanceOfCreateList(value) {
let isInstance = true;
isInstance = isInstance && 'name' in value;
isInstance = isInstance && 'folderId' in value;
return isInstance;
}
export function CreateListFromJSON(json) {
return CreateListFromJSONTyped(json, false);
}
export function CreateListFromJSONTyped(json, ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
name: json['name'],
folderId: json['folderId'],
};
}
export function CreateListToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
name: value.name,
folderId: value.folderId,
};
}
//# sourceMappingURL=CreateList.js.map