ListSubscribedWorkteamsResponse.fromJson constructor

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

Implementation

factory ListSubscribedWorkteamsResponse.fromJson(Map<String, dynamic> json) {
  return ListSubscribedWorkteamsResponse(
    subscribedWorkteams: (json['SubscribedWorkteams'] as List)
        .whereNotNull()
        .map((e) => SubscribedWorkteam.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}