ConstructionPreprocessRequest.fromMap constructor

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

Implementation

factory ConstructionPreprocessRequest.fromMap(Map<String, dynamic> map) {
  return ConstructionPreprocessRequest(
      NetworkIdentifier.fromMap(map["network_identifier"]),
      (map["operations"] as List).map((e) => Operation.fromMap(e)).toList(),
      map["metadata"],
      map["max_fee"] != null
          ? (map["max_fee"] as List).map((e) => Amount.fromMap(e)).toList()
          : null,
      map["suggested_fee_multiplier"]);
}