getKeysAsString method

Map<String, String> getKeysAsString()

Similar to getKey, it returns the client public keys, encoded as String.

Returns an empty map if no keys are present.

Implementation

Map<String, String> getKeysAsString() {
  var map =
      json.decode(facade.jsonStringify(_delegate)) as Map<String, dynamic>;
  var keys = map['keys'];
  if (keys is Map) {
    return keys.cast<String, String>();
  }
  return {};
}