AbiConstructorFragment.fromJson constructor

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

Implementation

factory AbiConstructorFragment.fromJson(Map<String, dynamic> json) {
  final List<dynamic> inputs = json["inputs"] ?? [];
  return AbiConstructorFragment(
    stateMutability: StateMutability.fromName(json["stateMutability"])!,
    inputs: inputs.map((e) => AbiParameter.fromJson(e)).toList(),
  );
}