TransactionWitnessSet.fromJson constructor
TransactionWitnessSet.fromJson(
- Map<String, dynamic> json
)
Implementation
factory TransactionWitnessSet.fromJson(Map<String, dynamic> json) {
return TransactionWitnessSet(
vKeys: (json['vkeys'] as List?)
?.map((e) => Vkeywitness.fromJson(e))
.toList(),
nativeScripts: (json['native_scripts'] as List?)
?.map((e) => NativeScript.fromJson(e))
.toList(),
redeemers: (json['redeemers'] as List?)
?.map((e) => Redeemer.fromJson(e))
.toList(),
bootstraps: (json['bootstraps'] as List?)
?.map((e) => BootstrapWitness.fromJson(e))
.toList(),
plutusScripts: (json['plutus_scripts'] as List?)
?.map((e) => PlutusScript.fromJson(e))
.toList(),
plutusData: (json['plutus_data'] == null
? null
: PlutusData.fromJson(json['plutus_data']) as PlutusList));
}