AbiEventFragment.fromJson constructor

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

Creates an instance of AbiEventFragment from JSON representation.

Implementation

factory AbiEventFragment.fromJson(Map<String, dynamic> json, bool tronTypes) {
  final List<dynamic> inputs = json["inputs"] ?? [];

  return AbiEventFragment(
      name: json["name"] ?? "",
      anonymous: json["anonymous"],
      inputs:
          inputs.map((e) => AbiParameter.fromJson(e, tronTypes)).toList());
}