ContainerServiceEndpoint.fromJson constructor

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

Implementation

factory ContainerServiceEndpoint.fromJson(Map<String, dynamic> json) {
  return ContainerServiceEndpoint(
    containerName: json['containerName'] as String?,
    containerPort: json['containerPort'] as int?,
    healthCheck: json['healthCheck'] != null
        ? ContainerServiceHealthCheckConfig.fromJson(
            json['healthCheck'] as Map<String, dynamic>)
        : null,
  );
}