StopWorkspacesResult.fromJson constructor

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

Implementation

factory StopWorkspacesResult.fromJson(Map<String, dynamic> json) {
  return StopWorkspacesResult(
    failedRequests: (json['FailedRequests'] as List?)
        ?.whereNotNull()
        .map((e) =>
            FailedWorkspaceChangeRequest.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}