AccountCoinsResponse.fromMap constructor

AccountCoinsResponse.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory AccountCoinsResponse.fromMap(Map<String, dynamic> map) {
  return AccountCoinsResponse(
      BlockIdentifier.fromMap(map["block_identifier"]),
      (map["coins"] as List).map((e) => Coin.fromMap(e)).toList(),
      map["metadata"]);
}