Class LabelParser

java.lang.Object
com.cognite.client.servicesV1.parser.LabelParser

public class LabelParser extends Object
This class contains a set of methods to help parsing file objects between Cognite api representations (json and proto) and typed objects.
  • Constructor Details

    • LabelParser

      public LabelParser()
  • Method Details

    • parseLabel

      public static Label parseLabel(String json) throws Exception
      Parses an event json string to Label proto object.
      Parameters:
      json -
      Returns:
      Throws:
      Exception
    • toRequestInsertItem

      public static Map<String,Object> toRequestInsertItem(Label element)
      Builds a request insert item object from Label. An insert item object creates a new asset data object in the Cognite system.
      Parameters:
      element -
      Returns: