fromJSON static method

Coin fromJSON(
  1. CoinJSON data
)

Implementation

static Coin fromJSON(CoinJSON data) {
  return Coin(data.denom, double.parse(data.amount!));
}