RoomKeyContent.fromJson constructor

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

Implementation

RoomKeyContent.fromJson(Map<String, Object?> json)
    : algorithm = json.tryGet('algorithm', TryGet.required) ?? '',
      roomId = json.tryGet('room_id', TryGet.required) ?? '',
      sessionId = json.tryGet('session_id', TryGet.required) ?? '',
      sessionKey = json.tryGet('session_key', TryGet.required) ?? '';