AccountBalanceResponse.fromMap constructor

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

Implementation

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