originstamp-client-fetch
Version:
TypeScript Fetch client for the OriginStamp service
56 lines • 2.66 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* OriginStamp Timestamping
* OriginStamp Timestamping leverages decentralized blockchain technology to create anonymous, tamper-proof timestamps for digital content. This service enables users to timestamp files, emails, or plain text, and store the resulting hashes on the blockchain. Users can also retrieve and verify timestamps that have been committed. The trusted timestamping mechanism ensures that a hash fingerprint can be generated and used as proof that specific data existed at a given point in time.
*
* The version of the OpenAPI document: 1.0.0
* Contact: support@originstamp.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfKeySettingResponseNotification = instanceOfKeySettingResponseNotification;
exports.KeySettingResponseNotificationFromJSON = KeySettingResponseNotificationFromJSON;
exports.KeySettingResponseNotificationFromJSONTyped = KeySettingResponseNotificationFromJSONTyped;
exports.KeySettingResponseNotificationToJSON = KeySettingResponseNotificationToJSON;
exports.KeySettingResponseNotificationToJSONTyped = KeySettingResponseNotificationToJSONTyped;
const Notification_1 = require("./Notification");
/**
* Check if a given object implements the KeySettingResponseNotification interface.
*/
function instanceOfKeySettingResponseNotification(value) {
if (!('proof' in value) || value['proof'] === undefined)
return false;
if (!('tree' in value) || value['tree'] === undefined)
return false;
return true;
}
function KeySettingResponseNotificationFromJSON(json) {
return KeySettingResponseNotificationFromJSONTyped(json, false);
}
function KeySettingResponseNotificationFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'proof': (0, Notification_1.NotificationFromJSON)(json['proof']),
'tree': (0, Notification_1.NotificationFromJSON)(json['tree']),
};
}
function KeySettingResponseNotificationToJSON(json) {
return KeySettingResponseNotificationToJSONTyped(json, false);
}
function KeySettingResponseNotificationToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'proof': (0, Notification_1.NotificationToJSON)(value['proof']),
'tree': (0, Notification_1.NotificationToJSON)(value['tree']),
};
}
//# sourceMappingURL=KeySettingResponseNotification.js.map
;