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