RoomKeyRequestContent.fromJson constructor

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

Implementation

RoomKeyRequestContent.fromJson(Map<String, Object?> json)
    : body = ((Map<String, Object?>? x) => x != null
          ? RequestedKeyInfo.fromJson(x)
          : null)(json.tryGet('body')),
      action = json.tryGet('action', TryGet.required) ?? '',
      requestingDeviceId =
          json.tryGet('requesting_device_id', TryGet.required) ?? '',
      requestId = json.tryGet('request_id', TryGet.required) ?? '';