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((v) => MatrixEvent.fromJson(v))
          .toList(),
      limited = json.tryGet<bool>('limited'),
      prevBatch = json.tryGet<String>('prev_batch');