SearchResultsEventContext.fromJson constructor
Implementation
SearchResultsEventContext.fromJson(Map<String, Object?> json)
: end = ((v) => v != null ? v as String : null)(json['end']),
eventsAfter = ((v) => v != null
? (v as List)
.map((v) => MatrixEvent.fromJson(v as Map<String, Object?>))
.toList()
: null)(json['events_after']),
eventsBefore = ((v) => v != null
? (v as List)
.map((v) => MatrixEvent.fromJson(v as Map<String, Object?>))
.toList()
: null)(json['events_before']),
profileInfo = ((v) => v != null
? (v as Map<String, Object?>).map(
(k, v) => MapEntry(
k,
UserProfile.fromJson(v as Map<String, Object?>),
),
)
: null)(json['profile_info']),
start = ((v) => v != null ? v as String : null)(json['start']);