onResonse method
Converts a dynamic response to the generic type T
.
Implementation
@override
List<InflationReward?> onResonse(result) {
return (result as List)
.map((e) => e == null ? null : InflationReward.fromJson(e))
.toList();
}
Converts a dynamic response to the generic type T
.
@override
List<InflationReward?> onResonse(result) {
return (result as List)
.map((e) => e == null ? null : InflationReward.fromJson(e))
.toList();
}