ConstructionMetadataRequest.fromMap constructor

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

Implementation

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