month method

Request<MonthStats> month()

Get the overall Unsplash stats for the past 30 days.

See: Unsplash docs

Implementation

Request<MonthStats> month() {
  final url = baseUrl.resolve('month');

  return Request(
    client: client,
    httpRequest: http.Request('GET', url),
    isPublicAction: true,
    bodyDeserializer: (dynamic json) =>
        MonthStats.fromJson(json as Map<String, dynamic>),
  );
}