AbiFallbackFragment.fromJson constructor
Creates an instance of AbiFallbackFragment from JSON representation.
Implementation
factory AbiFallbackFragment.fromJson(
Map<String, dynamic> json, bool tronTypes) {
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, tronTypes)).toList(),
outputs:
outputs.map((e) => AbiParameter.fromJson(e, tronTypes)).toList(),
constant: json["constant"],
payable: json["payable"]);
}