ListDataSourcesResponse.fromJson constructor

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

Implementation

factory ListDataSourcesResponse.fromJson(Map<String, dynamic> json) {
  return ListDataSourcesResponse(
    nextToken: json['NextToken'] as String?,
    summaryItems: (json['SummaryItems'] as List?)
        ?.whereNotNull()
        .map((e) => DataSourceSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}