SearchResultsEventContext.fromJson constructor

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

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) => SDNEvent.fromJson(v as Map<String, Object?>))
              .toList()
          : null)(json['events_after']),
      eventsBefore = ((v) => v != null
          ? (v as List)
              .map((v) => SDNEvent.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']);