Allow.fromMap constructor

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

Implementation

factory Allow.fromMap(Map<String, dynamic> map) {
  return Allow(
      (map["operation_statuses"] as List)
          .map((e) => OperationStatus.fromMap(e))
          .toList(),
      (map["operation_types"] as List).map((e) => e.toString()).toList(),
      (map["errors"] as List).map((e) => RosettaError.fromMap(e)).toList(),
      map["historical_balance_lookup"],
      (map["call_methods"] as List).map((e) => e.toString()).toList(),
      (map["balance_exemptions"] as List)
          .map((e) => BalanceExemption.fromMap(e))
          .toList(),
      map["mempool_coins"],
      map["timestamp_start_index"]);
}