optionsFromJson static method
Creates a list of StakingOption instances from a list of JSON objects.
Parameters:
docs
– An iterable of JSON objects.
Returns a list of StakingOption instances with the corresponding properties.
Implementation
static List<StakingOption> optionsFromJson(Iterable<dynamic> docs) =>
docs.map((e) => StakingOption.fromJson(e)).toList();