AbiErrorFragment.fromJson constructor

AbiErrorFragment.fromJson(
  1. Map<String, dynamic> json,
  2. bool tronTypes
)

Creates an instance of AbiErrorFragment from JSON representation.

Implementation

factory AbiErrorFragment.fromJson(Map<String, dynamic> json, bool tronTypes) {
  final List<dynamic> inputs = json["inputs"] ?? [];
  return AbiErrorFragment(
      inputs: inputs.map((e) => AbiParameter.fromJson(e, tronTypes)).toList(),
      name: json["name"]);
}