constructor(transaction, metrics) {
    this._transaction = transaction
    this._metrics = metrics
  }
A light representation of a transaction instance, returned by calling
{@link API#getTransaction}.

@param transaction
@param metrics
@class