TimelineUpdate.fromJson constructor

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

Implementation

TimelineUpdate.fromJson(Map<String, Object?> json)
  : events = json
        .tryGetList<Map<String, Object?>>('events')
        ?.map(MatrixEvent.fromJson)
        .toList(),
    limited = json.tryGet<bool>('limited'),
    prevBatch = json.tryGet<String>('prev_batch');