PoolRetirement.fromJson constructor

PoolRetirement.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory PoolRetirement.fromJson(Map<String, dynamic> json) {
  final Map<String, dynamic> correctJson = json["pool_retirement"] ?? json;
  return PoolRetirement(
      epoch: correctJson["epoch"],
      poolKeyHash: Ed25519KeyHash.fromHex(correctJson["pool_keyhash"]));
}