/* tslint:disable */
/* eslint-disable */
/**
 * Synapse REST API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: v1
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
import { OrganizationInformationFromJSON, OrganizationInformationToJSON, } from './OrganizationInformation';
import { PackageInformationFromJSON, PackageInformationToJSON, } from './PackageInformation';
/**
 * Check if a given object implements the ServiceInformation interface.
 */
export function instanceOfServiceInformation(value) {
    return true;
}
export function ServiceInformationFromJSON(json) {
    return ServiceInformationFromJSONTyped(json, false);
}
export function ServiceInformationFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'] == null ? undefined : json['id'],
        'name': json['name'] == null ? undefined : json['name'],
        'type': json['type'] == null ? undefined : PackageInformationFromJSON(json['type']),
        'description': json['description'] == null ? undefined : json['description'],
        'organization': json['organization'] == null ? undefined : OrganizationInformationFromJSON(json['organization']),
        'contactUrl': json['contactUrl'] == null ? undefined : json['contactUrl'],
        'documentationUrl': json['documentationUrl'] == null ? undefined : json['documentationUrl'],
        'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
        'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
        'environment': json['environment'] == null ? undefined : json['environment'],
        'version': json['version'] == null ? undefined : json['version'],
    };
}
export function ServiceInformationToJSON(json) {
    return ServiceInformationToJSONTyped(json, false);
}
export function ServiceInformationToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'name': value['name'],
        'type': PackageInformationToJSON(value['type']),
        'description': value['description'],
        'organization': OrganizationInformationToJSON(value['organization']),
        'contactUrl': value['contactUrl'],
        'documentationUrl': value['documentationUrl'],
        'createdAt': value['createdAt'],
        'updatedAt': value['updatedAt'],
        'environment': value['environment'],
        'version': value['version'],
    };
}
//# sourceMappingURL=ServiceInformation.js.map