fromData static method

Vote fromData(
  1. VoteDataArgs data
)

Implementation

static Vote fromData(VoteDataArgs data) {
  return Vote(double.parse(data.proposal_id!), data.voter!, data.options!);
}