CreateWorkspacesResult.fromJson constructor
CreateWorkspacesResult.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CreateWorkspacesResult.fromJson(Map<String, dynamic> json) {
return CreateWorkspacesResult(
failedRequests: (json['FailedRequests'] as List?)
?.whereNotNull()
.map((e) =>
FailedCreateWorkspaceRequest.fromJson(e as Map<String, dynamic>))
.toList(),
pendingRequests: (json['PendingRequests'] as List?)
?.whereNotNull()
.map((e) => Workspace.fromJson(e as Map<String, dynamic>))
.toList(),
);
}