CallResult.fromJson constructor

CallResult.fromJson(
  1. Map<String, dynamic> data
)

Implementation

factory CallResult.fromJson(Map<String, dynamic> data) {
  List<dynamic> receiptsJsonList = data['receipts'];
  return CallResult(
      receipts: receiptsJsonList
          .map((e) => TransactionReceipt.fromJson(e))
          .toList());
}