UNPKG

@bitblit/ratchet-misc

Version:

Ratchet miscellaneous tooling that requires smallish dependant libraries

31 lines 887 B
import { exists } from '../runtime.js'; export function instanceOfUploadImageToGallery(value) { let isInstance = true; isInstance = isInstance && 'imageUrl' in value; return isInstance; } export function UploadImageToGalleryFromJSON(json) { return UploadImageToGalleryFromJSONTyped(json, false); } export function UploadImageToGalleryFromJSONTyped(json, ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { imageUrl: json['imageUrl'], name: !exists(json, 'name') ? undefined : json['name'], }; } export function UploadImageToGalleryToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { imageUrl: value.imageUrl, name: value.name, }; } //# sourceMappingURL=UploadImageToGallery.js.map