toJson method

Map<int, List<int>> toJson()

Implementation

Map<int, List<int>> toJson() {
  final attrs = <int, List<int>>{};
  if (hdPathEncBytes != null) {
    attrs[1] = CborBytesValue(hdPathEncBytes!).encode();
  }
  if (networkMagic != null &&
      networkMagic != ADANetwork.mainnet.protocolMagic) {
    attrs[2] = CborIntValue(networkMagic!).encode();
  }
  return attrs;
}