lib/services/videoSearch/lib/models/trendingVideosCategory.js
/**
   * Defines the metadata of TrendingVideosCategory
   *
   * @returns {object} metadata of TrendingVideosCategory
   *
   */
Defines the metadata of TrendingVideosCategory
@returns {object} metadata of TrendingVideosCategory
Defines the metadata of TrendingVideosCategory @returns { object } metadata of TrendingVideosCategory
mapper() {
    return {
      required: false,
      serializedName: 'TrendingVideos/Category',
      type: {
        name: 'Composite',
        className: 'TrendingVideosCategory',
        modelProperties: {
          title: {
            required: true,
            serializedName: 'title',
            type: {
              name: 'String'
            }
          },
          subcategories: {
            required: true,
            serializedName: 'subcategories',
            type: {
              name: 'Sequence',
              element: {
                  required: false,
                  serializedName: 'TrendingVideosSubcategoryElementType',
                  type: {
                    name: 'Composite',
                    className: 'TrendingVideosSubcategory'
                  }
              }
            }
          }
        }
      }
    };
  }
mapper ( ) { return { required : false , serializedName : 'TrendingVideos/Category' , type : { name : 'Composite' , className : 'TrendingVideosCategory' , modelProperties : { title : { required : true , serializedName : 'title' , type : { name : 'String' } } , subcategories : { required : true , serializedName : 'subcategories' , type : { name : 'Sequence' , element : { required : false , serializedName : 'TrendingVideosSubcategoryElementType' , type : { name : 'Composite' , className : 'TrendingVideosSubcategory' } } } } } } } ; }
Defines the metadata of TrendingVideosCategory
 @returns {object} metadata of TrendingVideosCategory
Defines the metadata of TrendingVideosCategory @returns { object } metadata of TrendingVideosCategory