class ConnectionTag extends AbstractEntityIdWithRevision<ConnectionId> {

    public static ConnectionTag fromJson(final JsonObject jsonObject) {
        checkNotNull(jsonObject, "JSON object");
        final ConnectionId connectionId = ConnectionId.of(jsonObject.getValueOrThrow(JsonFields.ID));
        final Long revision = jsonObject.getValueOrThrow(JsonFields.REVISION);
        return new ConnectionTag(connectionId, revision);
    }

    private  ConnectionTag(final ConnectionId id, final long revision);

}