AbiFallbackFragment.fromJson constructor
Creates an instance of AbiFallbackFragment from JSON representation.
Implementation
factory AbiFallbackFragment.fromJson(Map<String, dynamic> json) {
final List<dynamic> inputs = json["inputs"] ?? [];
final List<dynamic> outputs = json["outputs"] ?? [];
return AbiFallbackFragment(
stateMutability: StateMutability.fromName(json["stateMutability"])!,
inputs: inputs.map((e) => AbiParameter.fromJson(e)).toList(),
outputs: outputs.map((e) => AbiParameter.fromJson(e)).toList(),
constant: json["constant"],
payable: json["payable"]);
}