toStorage method

String toStorage()

Implementation

String toStorage() {
  return jsonEncode(
    {
      keyLocalStorageKey: key != null
          ? jsonEncode((key as Ed25519KeyIdentity).toJson())
          : null,
      keyLocalStorageDelegation:
          chain != null ? jsonEncode(chain!.toJson()) : null,
    }..removeWhere((key, value) => value == null),
  );
}