factory PoolRegistration.fromJson(Map<String, dynamic> json) { return PoolRegistration(PoolParams.fromJson( json["pool_params"] ?? json["pool_registration"]["pool_params"])); }