ABI constructor

ABI(
  1. Map<String, dynamic> Abi
)

Implementation

ABI(Map<String, dynamic> Abi) {
  // because ABI is <String,dynamic>, to get the type annotation ready,
  // we need to use List.from(),which will get the correct list.
  // then we can extract the List<dynamic> type to List<Map>

  this.events = List.from(Abi['events']);
  this.fields = List.from(Abi['fields']);
  this.vname = Abi['vname'];
  this.params = List.from(Abi['params']);
  this.transitions = List.from(Abi['transitions']);
}