AbiParameter.fromJson constructor
Factory method to create an AbiParameter instance from a JSON representation.
Implementation
factory AbiParameter.fromJson(Map<String, dynamic> json) {
final List<dynamic> inputs = json["components"] ?? [];
final String name = json["name"] ?? "";
return AbiParameter(
name: name.isEmpty ? null : name,
type: json["type"],
internalType: json["internalType"],
indexed: json["indexed"] ?? false,
components: List<AbiParameter>.unmodifiable(
inputs.map((e) => AbiParameter.fromJson(e)).toList()),
);
}