class NetworkAddressModelDataMapper {

  public NetworkAddressModel transform(NetworkAddress networkAddress) {
    if (networkAddress == null) {
      throw new IllegalArgumentException("Cannot transform a null NetworkAddress object.");
    }

    return NetworkAddressModel.builder()
        .ip(networkAddress.ip())
        .port(networkAddress.port())
        .build();
  }

  @Inject public  NetworkAddressModelDataMapper();

}