portfolio/src/main/java/com/google/sps/data/Comment.java
/**
   * Returns a new Comment from an entity of kind "Comment".
   * @param {Entity} commentEntity - entity of kind "Comment" with various 
   *     properties similar to the fields of a Comment object.
   */
Returns a new Comment from an entity of kind "Comment".
@param {Entity} commentEntity - entity of kind "Comment" with various
properties similar to the fields of a Comment object.
Returns a new Comment from an entity of kind " Comment " . @param { Entity } commentEntity - entity of kind " Comment " with various properties similar to the fields of a Comment object .
public static Comment fromEntity(Entity commentEntity){
    Date timeOfComment = (Date) commentEntity.getProperty("timeOfComment");
    String name = (String) commentEntity.getProperty("name");
    String commentString = (String) commentEntity.getProperty("commentString");
    return new Comment(timeOfComment, name, commentString);
  }
public static Comment fromEntity ( Entity commentEntity ) { Date timeOfComment = ( Date ) commentEntity . getProperty ( "timeOfComment" ) ; String name = ( String ) commentEntity . getProperty ( "name" ) ; String commentString = ( String ) commentEntity . getProperty ( "commentString" ) ; return new Comment ( timeOfComment , name , commentString ) ; }
Returns a new Comment from an entity of kind "Comment".
Returns a new Comment from an entity of kind " Comment " .