PublicKeys.fromJson constructor

PublicKeys.fromJson(
  1. Map<String, Object?> json
)

Implementation

PublicKeys.fromJson(Map<String, Object?> json)
  : ed25519 = json['ed25519'] as String,
    additionalProperties = Map.fromEntries(
      json.entries
          .where((e) => !['ed25519'].contains(e.key))
          .map((e) => MapEntry(e.key, e.value as String)),
    );