toJson method

Map<String, dynamic> toJson()

Converts the decryption key to a JSON format.

Implementation

Map<String, dynamic> toJson() {
  return {'id': id, 'key': key};
}