flowus-api-sdk
Version:
Official TypeScript/JavaScript SDK for FlowUs API - Create, manage, and interact with FlowUs pages, databases, and blocks
75 lines (74 loc) • 2.43 kB
JavaScript
;
/* tslint:disable */
/* eslint-disable */
/**
* FlowUs API
* FlowUs Developer API
*
* The version of the OpenAPI document: 1.0.0
*
*
* 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.RichTextItemAnnotationsColorEnum = void 0;
exports.instanceOfRichTextItemAnnotations = instanceOfRichTextItemAnnotations;
exports.RichTextItemAnnotationsFromJSON = RichTextItemAnnotationsFromJSON;
exports.RichTextItemAnnotationsFromJSONTyped = RichTextItemAnnotationsFromJSONTyped;
exports.RichTextItemAnnotationsToJSON = RichTextItemAnnotationsToJSON;
exports.RichTextItemAnnotationsToJSONTyped = RichTextItemAnnotationsToJSONTyped;
/**
* @export
*/
exports.RichTextItemAnnotationsColorEnum = {
Default: 'default',
Gray: 'gray',
Brown: 'brown',
Orange: 'orange',
Yellow: 'yellow',
Green: 'green',
Blue: 'blue',
Purple: 'purple',
Pink: 'pink',
Red: 'red'
};
/**
* Check if a given object implements the RichTextItemAnnotations interface.
*/
function instanceOfRichTextItemAnnotations(value) {
return true;
}
function RichTextItemAnnotationsFromJSON(json) {
return RichTextItemAnnotationsFromJSONTyped(json, false);
}
function RichTextItemAnnotationsFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'bold': json['bold'] == null ? undefined : json['bold'],
'italic': json['italic'] == null ? undefined : json['italic'],
'strikethrough': json['strikethrough'] == null ? undefined : json['strikethrough'],
'underline': json['underline'] == null ? undefined : json['underline'],
'code': json['code'] == null ? undefined : json['code'],
'color': json['color'] == null ? undefined : json['color'],
};
}
function RichTextItemAnnotationsToJSON(json) {
return RichTextItemAnnotationsToJSONTyped(json, false);
}
function RichTextItemAnnotationsToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'bold': value['bold'],
'italic': value['italic'],
'strikethrough': value['strikethrough'],
'underline': value['underline'],
'code': value['code'],
'color': value['color'],
};
}