toJSON static method

List<CoinJSON> toJSON(
  1. List<Coin> coins
)

Implementation

static List<CoinJSON> toJSON(List<Coin> coins) {
  return coins.map((e) => e.toJSON()).toList();
}