PubkeyEnumWeightPair.fromJson constructor

PubkeyEnumWeightPair.fromJson(
  1. Map<String, dynamic> data
)

Implementation

factory PubkeyEnumWeightPair.fromJson(Map<String, dynamic> data) {
  return PubkeyEnumWeightPair(
    data["pubKey"],
    data["weight"]
  );
}