fromXdr method

TimeBounds fromXdr (
  1. XdrTimeBounds timeBounds
)

Creates a TimeBounds instance from a timeBounds XdrTimeBounds object.

Implementation

static TimeBounds fromXdr(XdrTimeBounds timeBounds) {
  if (timeBounds == null) {
    return null;
  }

  return TimeBounds(timeBounds.minTime.uint64, timeBounds.maxTime.uint64);
}