UNPKG

@bitblit/ratchet-misc

Version:

Ratchet miscellaneous tooling that requires smallish dependant libraries

29 lines 1.07 kB
import { exists } from '../runtime.js'; import { CustomFieldBadgeContentBadgesInnerFromJSON, CustomFieldBadgeContentBadgesInnerToJSON, } from './CustomFieldBadgeContentBadgesInner.js'; export function instanceOfCustomFieldBadgeContent(value) { let isInstance = true; return isInstance; } export function CustomFieldBadgeContentFromJSON(json) { return CustomFieldBadgeContentFromJSONTyped(json, false); } export function CustomFieldBadgeContentFromJSONTyped(json, ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { badges: !exists(json, 'badges') ? undefined : json['badges'].map(CustomFieldBadgeContentBadgesInnerFromJSON), }; } export function CustomFieldBadgeContentToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { badges: value.badges === undefined ? undefined : value.badges.map(CustomFieldBadgeContentBadgesInnerToJSON), }; } //# sourceMappingURL=CustomFieldBadgeContent.js.map