fromJSON static method

ProposalsVotesParams fromJSON(
  1. ProposalsVotingParamsJSON json
)

Implementation

static ProposalsVotesParams fromJSON(ProposalsVotingParamsJSON json) {
  return ProposalsVotesParams()
    ..voting_period = double.parse(json.voting_period.replaceAll("s", ""));
}