Coin.fromJson constructor

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

Implementation

factory Coin.fromJson(Map<String, dynamic> json) => Coin(
      value: json["value"]?.toDouble(),
      qty: json["qty"],
      amount: json["amount"],
    );