/*
 * 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';

/**
 * Image metadata.
 *
 */
class ImageMetadata {
  /**
   * Create a ImageMetadata.
   * @property {number} [width] Image width, in pixels.
   * @property {number} [height] Image height, in pixels.
   * @property {string} [format] Image format.
   */
  constructor() {
  }

  /**
   * Defines the metadata of ImageMetadata
   *
   * @returns {object} metadata of ImageMetadata
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'ImageMetadata',
      type: {
        name: 'Composite',
        className: 'ImageMetadata',
        modelProperties: {
          width: {
            required: false,
            nullable: false,
            serializedName: 'width',
            type: {
              name: 'Number'
            }
          },
          height: {
            required: false,
            nullable: false,
            serializedName: 'height',
            type: {
              name: 'Number'
            }
          },
          format: {
            required: false,
            nullable: true,
            serializedName: 'format',
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
}

module.exports = ImageMetadata;
