build/rekord.js
function(input, remoteData)
    {
      if ( input instanceof Model )
      {
        return input;
      }

      var discriminatedValue = isValue( input ) ? input[ this.discriminator ] : null;
      var model = this.discriminatorsToModel[ discriminatedValue ];

      return model ? model.Database.parseModel( input, remoteData ) : null;
    }
function(input, remoteData)
    {
      if ( input instanceof Model )
      {
        return input;
      }

      var discriminatedValue = isValue( input ) ? input[ this.discriminator ] : null;
      var model = this.discriminatorsToModel[ discriminatedValue ];

      return model ? model.Database.parseModel( input, remoteData ) : null;
    }
function ( input , remoteData ) { if ( input instanceof Model ) { return input ; } var discriminatedValue = isValue ( input ) ? input [ this . discriminator ] : null ; var model = this . discriminatorsToModel [ discriminatedValue ] ; return model ? model . Database . parseModel ( input , remoteData ) : null ; }
Takes input and returns a model instance. The input is expected to be an
object, any other type will return null.

@param {modelInput} input -
The input to parse to a model instance.
@param {Boolean} [remoteData=false] -
Whether or not the input is coming from a remote source.
@return {Rekord.Model} -
The model instance parsed or null if none was found.
Takes input and returns a model instance . The input is expected to be an object any other type will return null .