DescribeWorkspacesResult.fromJson constructor

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

Implementation

factory DescribeWorkspacesResult.fromJson(Map<String, dynamic> json) {
  return DescribeWorkspacesResult(
    nextToken: json['NextToken'] as String?,
    workspaces: (json['Workspaces'] as List?)
        ?.whereNotNull()
        .map((e) => Workspace.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}