ActiveChallengesResponseData.fromJson constructor

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

Implementation

factory ActiveChallengesResponseData.fromJson(Map<String, dynamic> json) =>
    ActiveChallengesResponseData(
      previousPageToken: json["previous_page_token"]?.toDouble() ?? 0.0,
      nextPageToken: json["next_page_token"]?.toDouble() ?? 0.0,
      entries: List<EntriesActiviyResponse>.from(
          json["entries"].map((x) => EntriesActiviyResponse.fromJson(x))),
    );