src/atom/AtomCategory.js
function(json){
    
    // Protect against forgetting the new keyword when calling the constructor
    if(!(this instanceof AtomCategory)){
      return new AtomCategory(json);
    }
    
    // If the given object is already an instance then just return it. DON'T copy it.
    if(AtomCategory.isInstance(json)){
      return json;
    }
    
    this.init(json);
  }
function(json){
    
    // Protect against forgetting the new keyword when calling the constructor
    if(!(this instanceof AtomCategory)){
      return new AtomCategory(json);
    }
    
    // If the given object is already an instance then just return it. DON'T copy it.
    if(AtomCategory.isInstance(json)){
      return json;
    }
    
    this.init(json);
  }
function ( json ) { // Protect against forgetting the new keyword when calling the constructor if ( ! ( this instanceof AtomCategory ) ) { return new AtomCategory ( json ) ; } // If the given object is already an instance then just return it. DON'T copy it. if ( AtomCategory . isInstance ( json ) ) { return json ; } this . init ( json ) ; }
Information about a category associated with an atom entry or 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.2|RFC 4287}

@class AtomCategory
@extends AtomCommon
@param {Object} [json]
Information about a category associated with an atom entry or feed .