toJson method

Json toJson()

Implementation

Json toJson() => {
      'type': type,
      'address': address,
      'derivationPath': derivationPath,
      'addresses': {
        for (final entry in addresses.entries)
          entry.key.index.toString(): entry.value,
      },
      'walletPurpose': walletPurpose?.index,
      'publicKey': publicKey,
    };