ListDatastoresResponse.fromJson constructor

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

Implementation

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