GetContainerServiceDeploymentsResult.fromJson constructor

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

Implementation

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