PlutusIntegerSerializationConfig.fromJson constructor

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

Implementation

factory PlutusIntegerSerializationConfig.fromJson(Map<String, dynamic> json) {
  return PlutusIntegerSerializationConfig(
    type:
        json["type"] == null
            ? null
            : CborPlutusIntegerEncoding.fromName(json["type"]),
    encoding:
        json["encoding"] == null
            ? CborLengthEncoding.canonical
            : CborLengthEncoding.fromName(json["encoding"]),
  );
}