client/public/src/models/SeoModel.js
/**
   * @method updateFromModel
   * @description given an aggie experts model, run the schema.org transform
   * and update the jsonld script tag
   * 
   * @param {Object} model 
   */
@method updateFromModel
@description given an aggie experts model, run the schema.org transform
and update the jsonld script tag

@param {Object} model
@method updateFromModel @description given an aggie experts model run the schema . org transform and update the jsonld script tag @param { Object } model
updateFromModel(model) {
    if( model.payload ) model = model.payload;
    let transform = getTransformByType(model['@type']);
    if( !transform ) {
      this.reset();
      return;
    }
    try {
      this.updateTag(transform(model));
    } catch(e) {
      console.error(e);
      this.reset();
    }
  }
updateFromModel ( model ) { if ( model . payload ) model = model . payload ; let transform = getTransformByType ( model [ '@type' ] ) ; if ( ! transform ) { this . reset ( ) ; return ; } try { this . updateTag ( transform ( model ) ) ; } catch ( e ) { console . error ( e ) ; this . reset ( ) ; } }
@method updateFromModel
 @description given an aggie experts model, run the schema.org transform
 and update the jsonld script tag
@method updateFromModel @description given an aggie experts model run the schema . org transform and update the jsonld script tag