@bitblit/ratchet-misc
Version:
Ratchet miscellaneous tooling that requires smallish dependant libraries
33 lines • 974 B
JavaScript
import { exists } from '../runtime.js';
export function instanceOfCreateSenderModel(value) {
let isInstance = true;
isInstance = isInstance && 'id' in value;
return isInstance;
}
export function CreateSenderModelFromJSON(json) {
return CreateSenderModelFromJSONTyped(json, false);
}
export function CreateSenderModelFromJSONTyped(json, ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
id: json['id'],
spfError: !exists(json, 'spfError') ? undefined : json['spfError'],
dkimError: !exists(json, 'dkimError') ? undefined : json['dkimError'],
};
}
export function CreateSenderModelToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
id: value.id,
spfError: value.spfError,
dkimError: value.dkimError,
};
}
//# sourceMappingURL=CreateSenderModel.js.map