ListDirectoriesResponse.fromJson constructor

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

Implementation

factory ListDirectoriesResponse.fromJson(Map<String, dynamic> json) {
  return ListDirectoriesResponse(
    directories: (json['Directories'] as List)
        .whereNotNull()
        .map((e) => Directory.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}