AuxiliaryData.fromJson constructor

AuxiliaryData.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory AuxiliaryData.fromJson(Map<String, dynamic> json) {
  return AuxiliaryData(
      metadata: json["metadata"] == null
          ? null
          : GeneralTransactionMetadata.fromJson(json["metadata"]),
      nativeScripts: (json["native_scripts"] as List?)
          ?.map((e) => NativeScript.fromJson(e))
          .toList(),
      plutusScripts: (json["plutusScripts"] as List?)
          ?.map((e) => PlutusScript.fromJson(e))
          .toList(),
      preferAlonzoFormat: json["prefer_alonzo_format"]);
}