fromJSON static method
Proposal
fromJSON(
- ProposalsResponseContainerValueJSON data
)
Implementation
static Proposal fromJSON(ProposalsResponseContainerValueJSON data) {
return Proposal(
double.parse(data.proposal_id),
//ProposalStatusConverters.GetFromString(data.status),
ProposalStatus.ProposalStatusUnspecified,
FinalTallyResult.fromJSON(data.final_tally_result),
data.submit_time,
data.deposit_end_time,
CoinsExtensions.fromJSON(data.total_deposit),
data.voting_start_time,
data.voting_end_time,
data.content);
}