src/atom/AtomGenerator.js
function(json){
    
    // Protect against forgetting the new keyword when calling the constructor
    if(!(this instanceof AtomGenerator)){
      return new AtomGenerator(json);
    }
    
    // If the given object is already an instance then just return it. DON'T copy it.
    if(AtomGenerator.isInstance(json)){
      return json;
    }
    
    this.init(json);
  }
function(json){
    
    // Protect against forgetting the new keyword when calling the constructor
    if(!(this instanceof AtomGenerator)){
      return new AtomGenerator(json);
    }
    
    // If the given object is already an instance then just return it. DON'T copy it.
    if(AtomGenerator.isInstance(json)){
      return json;
    }
    
    this.init(json);
  }
function ( json ) { // Protect against forgetting the new keyword when calling the constructor if ( ! ( this instanceof AtomGenerator ) ) { return new AtomGenerator ( json ) ; } // If the given object is already an instance then just return it. DON'T copy it. if ( AtomGenerator . isInstance ( json ) ) { return json ; } this . init ( json ) ; }
The agent used to generate a feed

@see {@link https://github.com/FamilySearch/gedcomx-rs/blob/master/specifications/atom-model-specification.md#atom-json-media-type|GEDCOM X Atom JSON Spec}
@see {@link https://tools.ietf.org/html/rfc4287#section-4.2.4|RFC 4287}

@class AtomGenerator
@extends AtomCommon
@param {Object} [json]
The agent used to generate a feed