PeekEventsResponse.fromJson constructor

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

Implementation

PeekEventsResponse.fromJson(Map<String, Object?> json)
    : chunk = ((v) => v != null
          ? (v as List)
              .map((v) => MatrixEvent.fromJson(v as Map<String, Object?>))
              .toList()
          : null)(json['chunk']),
      end = ((v) => v != null ? v as String : null)(json['end']),
      start = ((v) => v != null ? v as String : null)(json['start']);