AbiConstructorFragment.fromJson constructor

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

Implementation

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