text: /*
   * Copyright (c) Microsoft Corporation. All rights reserved.
   * Licensed under the MIT License. See License.txt in the project root for
   * license information.
   *
   * Code generated by Microsoft (R) AutoRest Code Generator.
   * Changes may cause incorrect behavior and will be lost if the code is
   * regenerated.
   */
  
  'use strict';
  
  /**
   * Class representing a PetAPObject.
   */
  class PetAPObject {
    /**
     * Create a PetAPObject.
     * @property {number} id
     * @property {string} [name]
     * @property {boolean} [status]
     */
    constructor() {
    }
  
    /**
     * Defines the metadata of PetAPObject
     *
     * @returns {object} metadata of PetAPObject
     *
     */
    mapper() {
      return {
        required: false,
        serializedName: 'PetAPObject',
        type: {
          name: 'Composite',
          additionalProperties: {
            type: {
              name: 'Dictionary',
              value: {
                  required: false,
                  serializedName: 'ObjectElementType',
                  type: {
                    name: 'Object'
                  }
              }
            }
          },
          className: 'PetAPObject',
          modelProperties: {
            id: {
              required: true,
              serializedName: 'id',
              type: {
                name: 'Number'
              }
            },
            name: {
              required: false,
              serializedName: 'name',
              type: {
                name: 'String'
              }
            },
            status: {
              required: false,
              readOnly: true,
              serializedName: 'status',
              type: {
                name: 'Boolean'
              }
            }
          }
        }
      };
    }
  }
  
  module.exports = PetAPObject;
  