ProposalAsset.fromJson constructor

ProposalAsset.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ProposalAsset.fromJson(Map<String, dynamic> json) => ProposalAsset(
      amount: json['amount'].toString(),
      nai: json['nai'].toString(),
      precision: json['precision'] is int ? json['precision'] : int.parse(json['precision'].toString()),
    );