Coins.fromJson constructor

Coins.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Coins.fromJson(Map<String, dynamic> json) => Coins(
      amount: json["amount"],
      coins: List<Coin>.from(json["coins"].map((x) => Coin.fromJson(x))),
    );