code: function parseAccountTrustline(trustline: Trustline): AccountTrustline {
    const specification = utils.removeUndefined({
      limit: trustline.limit,
      currency: trustline.currency,
      counterparty: trustline.account,
      qualityIn: utils.parseQuality(trustline.quality_in) || undefined,
      qualityOut: utils.parseQuality(trustline.quality_out) || undefined,
      ripplingDisabled: trustline.no_ripple || undefined,
      frozen: trustline.freeze || undefined,
      authorized: trustline.authorized || undefined
    })
    // rippled doesn't provide the counterparty's qualities
    const counterparty = utils.removeUndefined({
      limit: trustline.limit_peer,
      ripplingDisabled: trustline.no_ripple_peer || undefined,
      frozen: trustline.freeze_peer || undefined,
      authorized: trustline.peer_authorized || undefined
    })
    const state = {
      balance: trustline.balance
    }
    return {specification, counterparty, state}
  }
docs: rippled 'account_lines' returns a different format for trustlines than 'tx'