/* tslint:disable */
/* eslint-disable */
/**
* Gravatar Public API
* Gravatar\'s public API endpoints
*
* The version of the OpenAPI document: 3.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.
*/
/**
* Rating associated with the image.
* @export
*/
export const Rating = {
G: 'G',
Pg: 'PG',
R: 'R',
X: 'X'
} as const;
export type Rating = typeof Rating[keyof typeof Rating];
export function instanceOfRating(value: any): boolean {
for (const key in Rating) {
if (Object.prototype.hasOwnProperty.call(Rating, key)) {
if (Rating[key as keyof typeof Rating] === value) {
return true;
}
}
}
return false;
}
export function RatingFromJSON(json: any): Rating {
return RatingFromJSONTyped(json, false);
}
export function RatingFromJSONTyped(json: any, ignoreDiscriminator: boolean): Rating {
return json as Rating;
}
export function RatingToJSON(value?: Rating | null): any {
return value as any;
}
export function RatingToJSONTyped(value: any, ignoreDiscriminator: boolean): Rating {
return value as Rating;
}