GetEventsResponse.fromJson constructor

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

Implementation

GetEventsResponse.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']);