class ThingTag extends AbstractEntityIdWithRevision<ThingId> {

    public static ThingTag fromJson(final JsonObject jsonObject) {
        checkNotNull(jsonObject, "JSON object");
        final ThingId thingId = ThingId.of(jsonObject.getValueOrThrow(JsonFields.ID));
        final Long revision = jsonObject.getValueOrThrow(JsonFields.REVISION);

        return new ThingTag(thingId, revision);
    }

    private  ThingTag(final ThingId id, final long revision);

}