public NetworkInterface unmarshall(JsonUnmarshallerContext context) throws Exception {
    NetworkInterface networkInterface = new NetworkInterface();

    int originalDepth = context.getCurrentDepth();
    int targetDepth = originalDepth + 1;

    JsonToken token = context.currentToken;
    if (token == null) token = context.nextToken();

    while (true) {
      if (token == null) break;

      if (token == FIELD_NAME || token == START_OBJECT) {
        if (context.testExpression("Ipv4Address", targetDepth)) {
          context.nextToken();
          networkInterface.setIpv4Address(StringJsonUnmarshaller.getInstance().unmarshall(context));
        }
        if (context.testExpression("MacAddress", targetDepth)) {
          context.nextToken();
          networkInterface.setMacAddress(StringJsonUnmarshaller.getInstance().unmarshall(context));
        }
        if (context.testExpression("Ipv6Address", targetDepth)) {
          context.nextToken();
          networkInterface.setIpv6Address(StringJsonUnmarshaller.getInstance().unmarshall(context));
        }
      } else if (token == END_ARRAY || token == END_OBJECT) {
        if (context.getCurrentDepth() <= originalDepth) break;
      }

      token = context.nextToken();
    }

    return networkInterface;
  }