fromJSON static method

FinalTallyResult fromJSON(
  1. ProposalsFinallyTallyResults data
)

Implementation

static FinalTallyResult fromJSON(ProposalsFinallyTallyResults data) {
  return FinalTallyResult()
    ..yes = double.parse(data.yes)
    ..abstain = double.parse(data.abstain)
    ..no = double.parse(data.no)
    ..no_with_veto = double.parse(data.no_with_veto);
}