ConstructionParseResponse.fromMap constructor

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

Implementation

factory ConstructionParseResponse.fromMap(Map<String, dynamic> map) {
  return ConstructionParseResponse(
      (map["operations"] as List).map((e) => Operation.fromMap(e)).toList(),
      map["signers"] != null
          ? (map["signers"] as List).map((e) => e.toString()).toList()
          : null,
      map["account_identifier_signers"] != null
          ? (map["account_identifier_signers"] as List)
              .map((e) => AccountIdentifier.fromMap(e))
              .toList()
          : null,
      map["metadata"]);
}