DescribeWorkspaceDirectoriesResult.fromJson constructor

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

Implementation

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