@bitblit/ratchet-misc
Version:
Ratchet miscellaneous tooling that requires smallish dependant libraries
38 lines • 1.47 kB
JavaScript
import { exists } from '../runtime.js';
export function instanceOfCustomFieldBadgeConfigOptionsValue(value) {
let isInstance = true;
return isInstance;
}
export function CustomFieldBadgeConfigOptionsValueFromJSON(json) {
return CustomFieldBadgeConfigOptionsValueFromJSONTyped(json, false);
}
export function CustomFieldBadgeConfigOptionsValueFromJSONTyped(json, ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
_id: !exists(json, '_id') ? undefined : json['_id'],
name: !exists(json, 'name') ? undefined : json['name'],
_picture: !exists(json, '_picture') ? undefined : json['_picture'],
_picture_small: !exists(json, '_picture_small') ? undefined : json['_picture_small'],
_picture_medium: !exists(json, '_picture_medium') ? undefined : json['_picture_medium'],
_picture_large: !exists(json, '_picture_large') ? undefined : json['_picture_large'],
};
}
export function CustomFieldBadgeConfigOptionsValueToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
_id: value._id,
name: value.name,
_picture: value._picture,
_picture_small: value._picture_small,
_picture_medium: value._picture_medium,
_picture_large: value._picture_large,
};
}
//# sourceMappingURL=CustomFieldBadgeConfigOptionsValue.js.map