ActivitiesResponse.fromJson constructor

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

Implementation

factory ActivitiesResponse.fromJson(Map<String, dynamic> json) {
  return ActivitiesResponse(
    item: (json['Item'] as List)
        .whereNotNull()
        .map((e) => ActivityResponse.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}