ListPlacementsResponse.fromJson constructor

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

Implementation

factory ListPlacementsResponse.fromJson(Map<String, dynamic> json) {
  return ListPlacementsResponse(
    placements: (json['placements'] as List)
        .whereNotNull()
        .map((e) => PlacementSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['nextToken'] as String?,
  );
}