ConstructionPayloadsRequest.fromMap constructor

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

Implementation

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