ForwardedRoomKeyContent.fromJson constructor

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

Implementation

ForwardedRoomKeyContent.fromJson(Map<String, Object?> json)
    : senderKey = json.tryGet('sender_key', TryGet.required) ?? '',
      senderClaimedEd25519Key =
          json.tryGet('sender_claimed_ed25519_key', TryGet.required) ?? '',
      forwardingCurve25519KeyChain = json.tryGetList(
              'forwarding_curve25519_key_chain', TryGet.required) ??
          [],
      super.fromJson(json);