fromJson

public static Metric fromJson(String jsonString)

Deserializes a JSON string to a Metric object.