EventsResponse.fromJson constructor

EventsResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory EventsResponse.fromJson(Map<String, dynamic> json) {
  return EventsResponse(
    results: (json['Results'] as Map<String, dynamic>?)?.map((k, e) =>
        MapEntry(k, ItemResponse.fromJson(e as Map<String, dynamic>))),
  );
}