U-Report is a social messaging tool and data collection system developed by UNICEF to improve citizen engagement, inform leaders, and foster positive change. The program sends polls and alerts to its participants, collecting real-time responses, and subsequently publishes gathered data.
While retrieving stories from the U-Report public API stories endpoint, to make your life easier, convert the http.Response into a Dart object.
First, create a Story class in model directory that contains the API data from the network request. It includes a factory constructor that creates a Story from JSON. It includes the following data fields:
While retrieving stories from the U-Report public API stories endpoint, to make your life easier, convert the http.Response into a Dart object.
First, create a Story class in
model
directory that contains the API data from the network request. It includes a factory constructor that creates a Story from JSON. It includes the following data fields: