toJson method
Converts the object to a JSON representation.
Implementation
@override
Map<String, dynamic> toJson() {
return {
'metadata': metadata?.toJson(),
'native_scripts': nativeScripts?.map((e) => e.toJson()).toList(),
'plutus_scripts': plutusScripts?.map((e) => e.toJson()).toList(),
'prefer_alonzo_format': preferAlonzoFormat
};
}