fromData static method

Implementation

static PolicyConstraints fromData(PolicyConstraintsDataArgs data) {
  return PolicyConstraints(
      double.parse(data.rate_min!),
      double.parse(data.rate_max!),
      Coin.fromData(data.cap!),
      double.parse(data.change_rate_max!));
}