@bitblit/ratchet-misc
Version:
Ratchet miscellaneous tooling that requires smallish dependant libraries
29 lines • 1.26 kB
JavaScript
import { exists, mapValues } from '../runtime.js';
import { CustomFieldSingleSelectDropDownConfigOptionsValueFromJSON, CustomFieldSingleSelectDropDownConfigOptionsValueToJSON, } from './CustomFieldSingleSelectDropDownConfigOptionsValue.js';
export function instanceOfCustomFieldMultiSelectDropDownConfig(value) {
let isInstance = true;
return isInstance;
}
export function CustomFieldMultiSelectDropDownConfigFromJSON(json) {
return CustomFieldMultiSelectDropDownConfigFromJSONTyped(json, false);
}
export function CustomFieldMultiSelectDropDownConfigFromJSONTyped(json, ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
options: !exists(json, 'options') ? undefined : mapValues(json['options'], CustomFieldSingleSelectDropDownConfigOptionsValueFromJSON),
};
}
export function CustomFieldMultiSelectDropDownConfigToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
options: value.options === undefined ? undefined : mapValues(value.options, CustomFieldSingleSelectDropDownConfigOptionsValueToJSON),
};
}
//# sourceMappingURL=CustomFieldMultiSelectDropDownConfig.js.map