toJson method

KeyEntryObject toJson()

Converts the key entry to a KeyEntryObject.

Returns a KeyEntryObject containing the key entry details.

Implementation

KeyEntryObject toJson() {
  return KeyEntryObject(
    algorithm: algorithm,
    name: name,
    metadata: metadata,
    tags: tags,
    key: key,
  );
}