fromJSON static method

ProposalsDepositParams fromJSON(
  1. ProposalsDepositParamsJSON json
)

Implementation

static ProposalsDepositParams fromJSON(ProposalsDepositParamsJSON json) {
  return ProposalsDepositParams()
    ..max_deposit_period =
        double.parse(json.max_deposit_period.replaceAll("s", ""))
    ..min_deposit = CoinsExtensions.fromJSON(json.min_deposit).toList();
}