originstamp-client-fetch
Version:
TypeScript Fetch client for the OriginStamp service
74 lines (62 loc) • 2.65 kB
text/typescript
/* 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.
*/
import { mapValues } from '../runtime';
import type { KeySettingResponseNotification } from './KeySettingResponseNotification';
import {
KeySettingResponseNotificationFromJSON,
KeySettingResponseNotificationFromJSONTyped,
KeySettingResponseNotificationToJSON,
KeySettingResponseNotificationToJSONTyped,
} from './KeySettingResponseNotification';
/**
* API Setting contains notification i.e. webhook targets. An empty string indicates that the notification is deactivated for this category.
* @export
* @interface KeySettingResponse
*/
export interface KeySettingResponse {
/**
*
* @type {KeySettingResponseNotification}
* @memberof KeySettingResponse
*/
notification?: KeySettingResponseNotification;
}
/**
* Check if a given object implements the KeySettingResponse interface.
*/
export function instanceOfKeySettingResponse(value: object): value is KeySettingResponse {
return true;
}
export function KeySettingResponseFromJSON(json: any): KeySettingResponse {
return KeySettingResponseFromJSONTyped(json, false);
}
export function KeySettingResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeySettingResponse {
if (json == null) {
return json;
}
return {
'notification': json['notification'] == null ? undefined : KeySettingResponseNotificationFromJSON(json['notification']),
};
}
export function KeySettingResponseToJSON(json: any): KeySettingResponse {
return KeySettingResponseToJSONTyped(json, false);
}
export function KeySettingResponseToJSONTyped(value?: KeySettingResponse | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'notification': KeySettingResponseNotificationToJSON(value['notification']),
};
}