Coin.fromJson constructor

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

Implementation

factory Coin.fromJson(Map<String, dynamic> json) {
  return Coin(
    version: json['version'],
    height: json['height'],
    value: NumberUtil.toDouble(json['value']),
    address: json['address'],
    coinbase: json['coinbase'],
  );
}