DecryptionTarget.fromJson constructor

DecryptionTarget.fromJson(
  1. Map<String, dynamic> json
)

Read this payload from a decoded JSON object.

Implementation

factory DecryptionTarget.fromJson(Map<String, dynamic> json) =>
    DecryptionTarget(
      leafIndex: json['leafIndex'] as int?,
      question: json['question'] as String?,
      option: json['option'] as String?,
      ciphertext: ElGamalCiphertext.fromJson(
          json['ciphertext'] as Map<String, dynamic>),
    );