ListDatasetGroupsResponse.fromJson constructor

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

Implementation

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