AbiEventFragment.fromJson constructor

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

Creates an instance of AbiEventFragment from JSON representation.

Implementation

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

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